Android Question Location of emulator database

anaylor01

Well-Known Member
Licensed User
Longtime User
I am writing values when I run my app on the emulator. What is the location of the database on my computer for the emulator?
 

LucaMs

Expert
Licensed User
Longtime User
I use adb to write/get files from emulators and Windows (and from/to real device too).

You could open a Windows' command window :) (writing and executing cmd in "search programs and files") and then:

to copy a file from Windows to an Emulator:
adb push [Windows path]\[file name] [Emulator path]
(e.g.: adb push C:\Users\USERNAME\Desktop\FileToCopy.txt /sdcard/)


to get a file from an Emulator:
adb pull [Emulator path]/[file name] [Windows path]\[file name]
(e.g. adb pull /sdcard/FileToGet.txt C:\Users\USERNAME\Desktop\FileToGet.txt)
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
I use adb to write/get files from emulators and Windows (and from/to real device too).

You could open a Windows' command window :) (writing and executing cmd in "search programs and files") and then:

to copy a file from Windows to an Emulator:
adb push [Windows path]\[file name] [Emulator path]
(e.g.: adb push C:\Users\USERNAME\Desktop\FileToCopy.txt /sdcard/)


to get a file from an Emulator:
adb pull [Emulator path]/[file name] [Windows path]\[file name]
(e.g. adb pull /sdcard/FileToGet.txt C:\Users\USERNAME\Desktop\FileToGet.txt)


thumbs_up_thumbs_up_vote_like.png
 
Upvote 0

anaylor01

Well-Known Member
Licensed User
Longtime User
I am working on another computer and I tried using this.
Dim dbfiledir As String
msgbox(dbfiledir, "")
And it returns blank. Any ideas?
 
Upvote 0
Top