![]() ![]() Fix Flashlight Not Working on Android/Samsung.Fix WiFi Calling Not Working on Android.Android Phone Keeps Sending Old Texts by Itself.Fix Android not Receiving Group Texts from iPhone.Android Software Update Unable to Connect to Server.Fix Google Search Bar Not Working on Android.Unable to Send Email from Android Phone.Why Can't I See My Pictures in My Gallery.Android Phone Doesn't Ring When Someone Calls Me.Security Policy Restricts Use Of Camera.Why Are My Text Messages Out of Order Android.How to Fix Odin Stuck on Setup Connection. ![]() Couldn't Establish a Secure Connection on Android.Unable to Add Google Account to Android.Unable to Move Files to SD Card Android.Google Contacts Not Syncing with Android.Contact Names Not Showing in Messages or Calls Android.Pokemon Go Adventure Sync Not Working Android.Google Pixel 6/5/4/3/2 Black Screen of Death.LG Stylo 2 Stuck on Configuring Your Phone. ![]() Toast.makeText(getApplicationContext(), "Database Restored successfully", Toast.LENGTH_SHORT). String currentDBPath = "//data//your package name//databases//dbname.db" įileChannel src = new FileInputStream(backupDB).getChannel() įileChannel dst = new FileOutputStream(currentDB).getChannel() Toast.makeText(getApplicationContext(), "Backup is successful to SD card", Toast.LENGTH_SHORT).show() Log.d("backupDB path", "" + backupDB.getAbsolutePath()) įileChannel src = new FileInputStream(currentDB).getChannel() įileChannel dst = new FileOutputStream(backupDB).getChannel() String currentDBPath = "//data//your package name//databases//dbname.db" įile currentDB = new File(data, currentDBPath) įile backupDB = new File(sd, backupDBPath) if you want to do the back up from your local storage try below given code.įile sd = Environment.getExternalStorageDirectory() įile data = Environment.getDataDirectory() There are several types available in back up and restore to your db file like Google drive, drop box and one drive. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |