Tag Archives: copy

8,437 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
7,260 views

Copy Android project with a new name in Eclipse

Copy your project into new one (ctrl+c & ctrl+v) in project Package Explorer (folder tree). Paste project Change package-name in AndroidManifest.xml package=”com.example.new_package_name” Rename your main package with refactor. Don’t forget to select package and press F2. Just change your application … Continue reading

Posted in Android Examples Code, Eclipse | Tagged , , , | Comments Off on Copy Android project with a new name in Eclipse