I isk2837 Member Licensed User Longtime User Mar 29, 2012 #1 I created a database to access using this line of code - Code: Copy 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?
I created a database to access using this line of code - Code: Copy 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?
I isk2837 Member Licensed User Longtime User Apr 1, 2012 #21 Erel said: Yes. You already have them installed. They are part of the Android SDK. Click to expand... 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
Erel said: Yes. You already have them installed. They are part of the Android SDK. Click to expand... 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?
margret Well-Known Member Licensed User Longtime User Apr 1, 2012 #22 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
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
I isk2837 Member Licensed User Longtime User Apr 1, 2012 #23 margret said: 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 Click to expand... 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
margret said: 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 Click to expand... 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?
margret Well-Known Member Licensed User Longtime User Apr 2, 2012 #24 Try This adb pull /sdcard/Breakout.db Breakout.db This should copy the file to your computer into the same directory where adb.exe is. Upvote 0
Try This adb pull /sdcard/Breakout.db Breakout.db This should copy the file to your computer into the same directory where adb.exe is.
I isk2837 Member Licensed User Longtime User Apr 2, 2012 #25 margret said: Try This adb pull /sdcard/Breakout.db Breakout.db This should copy the file to your computer into the same directory where adb.exe is. Click to expand... That did it. Thanks Upvote 0
margret said: Try This adb pull /sdcard/Breakout.db Breakout.db This should copy the file to your computer into the same directory where adb.exe is. Click to expand... That did it. Thanks