Where is this database?

isk2837

Member
Licensed User
Longtime User
I created a database to access using this line of code -
B4X:
Sql1.Initialize(File.DirInternal,"Breakout.db",True)
The program can access the database no problem. However, I have an issue - I have no idea where this database is on my computer! I've tried searches for a file called Breakout.db without success. Eventually I'm going to be transferring this app onto a mobile phone, and I assume I'll need to know where the database file is so that I can transfer it over as well. So, where is File.DirInternal pointing to in my computer?
 

isk2837

Member
Licensed User
Longtime User
Yes. You already have them installed. They are part of the Android SDK.
I've hardly ever used the Android SDK before - the Android SDK manager doesn't seem to do anything except list packages I can download. I found a file called adb in C:\Program Files (x86)\Android\android-sdk\platform-tools, but all clicking it did was make the Command Prompt window appear for a few seconds, then it disappeared before I could even read what it was saying. How am I supposed to use adb, since finding adb.exe in Windows Explorer and clicking on it doesn't appear to be the right way?
 
Upvote 0

margret

Well-Known Member
Licensed User
Longtime User
Shell to a command prompt in windows. Click start and enter cmd and press enter. Now change to the directory you just listed where you found adb.exe. Once there, if you type adb and press enter it will list the commands and syntax. You can also find more info here:

[HOW TO] Basic ADB Commands - Android Forums
 
Upvote 0

isk2837

Member
Licensed User
Longtime User
Shell to a command prompt in windows. Click start and enter cmd and press enter. Now change to the directory you just listed where you found adb.exe. Once there, if you type adb and press enter it will list the commands and syntax. You can also find more info here:

[HOW TO] Basic ADB Commands - Android Forums
Ok, I opened adb with the command prompt. After reading the information in the link you provided, I concluded that I need to use the command ADB push. So I entered (as a test) adb push mnt/sdcard/Breakout.db D:\Users\Student\Documents, only to get a message saying that there's no such file/directory as mnt/sdcard/Breakout.db. So, what address do I need to enter to access whatever part of my computer the table Breakout.db is stored on? All I know is it's wherever File.DirRootExternal points to when the app is on a computer (being run with an emulator) and there isn't a SD card or any other form of external storage device connected to the computer. So what address would let me use ADB push to take a file from there to somewhere else?
 
Upvote 0
Top