How can I backup sqlite file in SD Card programmatically?
When you use emulator your sqlite file is stored in a folder near your main application folder and you can download it. But this feature is not accessible in not rooted devices. How can I backup this existing sqlite file in SD Card programmatically ? I want to have a button in my application that stores this file in a special path in my SD Card. Is it possible? Thanks, You can try this, work for me, remember to get the WRITE_EXTERNAL_STORAGE permission in your manifest: // Copy to sdcard for debug use public static void copyDatabase(Context c, String DATABASE_NAME) { String databasePath = c