deleteDatabse(String) not working android -


i have activity med.java having following code:

this.deletedatabase(db.getdatabasename()); 

and activity orderdetails.java. in activity have add class name also:

orderdetails.this.deletedatabase(db.getdatabasename()); 

and activity extending fragment:

getactivity().deletedatabase(db.getdatabasename()); 

the first 2 working fine. want know why in second activity have add class name. , third fragment code, not working @ all. please help

its using context.deletedatabase(database_name);

inside fragment might when calling getactivity() getactivity() can null @ time. refer getactivity() returns null in fragment function


Comments

Popular posts from this blog

java - BeanIO write annotated class to fixedlength -

Using Java 8 lambdas/transformations to combine and flatten two Maps -

How to connect android app to App engine -