Wednesday, March 28, 2012

[android-developers] Re: Regarding application created data access on android phone

Yes, you can't.  You have three choices:

1) Build extra functionality into your app to copy the database to the sdcard or make it world-readable

2) Make your apk debuggable and use run-as your.package.name from the adb shell to copy the database.  You may need to use cat and a redirect if your device does not have a cp command.

3) Root the device or do your testing on the emulator which as your discovered is 'rooted' by default.

On Tuesday, March 27, 2012 6:05:04 AM UTC-4, ashiq sayyad wrote:
Hi,

Hope all doing well.

My application created on database programatically.. On emulator,I can
see the created database using File Explorer under data folder ..

But on device I cant see my app data..

Thanks & Regards,
Ashiq Sayyad

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment