Tag Archives: packagename

8,723 views

Copy sqlite database from apk package to device folder Android example

Put your sglite database to Android Eclipse project folder named Assets. On device will copy database file to application folder as this example:   public void createDatabase(Context myContext) throws IOException { String sPackName = myContext.getPackageName(); InputStream assetsDB = myContext.getAssets().open("myDatabase"); OutputStream … Continue reading

Posted in SQLite database | Tagged , , , , , , | Comments Off on Copy sqlite database from apk package to device folder Android example