I am using Android Studio 3.2.1 and I want to save database from emulator storage to my local disk. So I open device file explorer (DFE), select my database and click Save As. Everything is fine if I save small databases. If I try to save database more than 4 Mb, device file explorer hangs on and it look like this:
And I can't save database to local disk. How can I fix it or it is only problem with my IDE?
I have faced same problem too. Newer version of Android Studio has this bug.
The solution is adb command.
use this code inside Android Studio terminal:
adb exec-out run-as your.package.name cat databases/your_db_name > your_db_name
then goto your project directory such as:
C:\Users\your-PC\AndroidStudioProjects\MyApplication
now open the db file using any sqlite editor