Following line of code showing runtime error "Unable to open database /data/loginscreen.example.com.girviapp/databases/abcd"
String currentDBPath = "//data//"+ "loginscreen.example.com.girviapp" +"//databases//"+DATABASE_NAME; Context context = getActivity().getApplicationContext(); String con=context.getDatabasePath(currentDBPath).toString(); String attachquery="ATTACH '"+ con +"' AS XXX"; db1.execSQL(attachquery);
Aucun commentaire:
Enregistrer un commentaire