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 - How to display all orders for a single product showing the most recent first? Woocommerce -

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

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -