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

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -