android - Facing strange error while instantiating fragment -


i going open new fragment in oncreate method.

but while instantiating fragment facing error " method call expacted " shown in image

enter image description here

and announcementfragment class declaration below ..enter image description here

i had search problem didn't find solutions.

announcefragment fragment = new announcefragment(); 

Comments