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

php - Autoloader issue not returning Class -

java - How to put two numbers separated by a space into two different arrays -

c++ - Why am i getting wrong values when performing PE base relocation? -