Typically, to get a database on your computer from either the
emulator, or the actual device, the commands go something like this
for me

> adb shell
$ su
# cd /data/data/my.package.name/databases
# ls
my_database.db
# chmod 777 my_database.db
# exit
$ exit
> adb pull /data/data/my.package.name/my_database.db ~/my_database.db

For the pull, I am on linux, so my destination path looks like ~/blah.
On windows, mark is correct - it should look something like C:/asdf
Naturally, the file my_database.db does not exist locally (that is, on
the computer) before this command, so it is created if it is not
there. The su command at the beginning simply allows you to change
directories and list directories more easily, it is not required.
Without su, you could do cd /data and a list (ls) would likely fail,
citing permission problems

Thanks,
Hamy

On Jun 19, 3:02 pm, Georgy <[email protected]> wrote:
> if not could you please give me an example of
>
> adb pull <remote> <local>
>
> I can't figure out the destination of my files..
>
> thanks
>
> On Jun 19, 3:51 pm, Georgy <[email protected]> wrote:
>
> > Is there anyway to do so from DDMS without dealing with the security
> > issues of the device? I was able to do that using the emulator on
> > Eclipse and not the command prompt.  Anyway to deal with the device
> > database from Eclipse (DDMS) ?
>
> > thanks
>
> > On Jun 19, 3:09 pm, "Mark Murphy" <[email protected]> wrote:
>
> > > > on another matter, I want to see my database, I rezlied that I do not
> > > > have the persmission to see it from the device, how can I see it from
> > > > the emulator on Eclipse? I read the documentation and on the MS DOS
> > > > prompt after writing adb -s emulator5554 shell and trying to connect
> > > > to the database it can't find it and I can't see it  on the project
> > > > explorer in Eclipse?
>
> > > > any ideas?
>
> > > Use the adb pull command:
>
> > >http://developer.android.com/guide/developing/tools/adb.html#copyfiles
>
> > > --
> > > Mark Murphy (a Commons Guy)http://commonsware.com
> > > _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to