Android: Rename database filename?
I tried following code and it worked.
File dbFile = getDatabasePath("db_name");boolean renamed = dbFile.renameTo(new File(getDatabasePath("db_name").getParent(), "db_name.db"));Log.d("Renamed", renamed+"");
Logcat outputs true
And I checked by using adb shell and it did work. If there is someother way to do it please add it.