android - Store data in SQLite at first app execution -
android - Store data in SQLite at first app execution -
i wonder if possible create sqlite database when app got run first time , save info in it.
i don't want save every time app gets started. after installation.
is possible?
just override oncreate()
method in class extends sqliteopenhelper , insert there data.
called when database created first time. creation of tables , initial population of tables should happen.
http://developer.android.com/reference/android/database/sqlite/sqliteopenhelper.html#oncreate(android.database.sqlite.sqlitedatabase) .
android android-sqlite
Comments
Post a Comment