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

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -