android - Create DialogFragment as anonymous class -


i got app code this:

builalert = new dialogfragment() {                     @override                     public dialog oncreatedialog(final bundle savedinstancestate) { ... } 

the import of android.support.v4.app.dialogfragment

this worked fine in past. when need old code, runtime error saying dialogfragment should public static class.. when wrote old code, used many class members , methods not static...

is there way keep dialogfragment anonymous class , not make different static class?


Comments

Popular posts from this blog

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -