android: sqlite database empty after phone restart or kill per taskmanager -
i have created database in android app:
context context = this.getapplicationcontext(); sqlitedatabase db; string path = "cultura.db"; db = context.openorcreatedatabase(path, context.mode_world_writeable, null);
ok if app killed task manager or phone restarted database empty. have solution????
the code create database follows :
sqlitedatabase sampledb = null;
sampledb = this.openorcreatedatabase(constants.db_name, mode_private, null);
the database shouldn't empty if phone restarted.
did created tables & inserted values ?
Comments
Post a Comment