• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps How to see the sqlite DB created on the default path on the device?

Hi All,

I am creating the sqlite database on the default path.
From the emulator I am able to find the database file.
But When I am installing in the device the database is getting created but I am not able to browse to the /data/data/<My package Name>/databases/database name folder.
Even from the device I am not able to browse to the /data folder
through the adb shell commnd its giving the permission denied error.

So how to see the sqlite database file created in the default path in the device?

Please help me...

Thanks & Regards,
Ajit
 
Yeah, I think you are stuck either rooting the phone to adding some code to your app that copies the database to the SD card when you want to examine it.
 
Yeah, I think you are stuck either rooting the phone to adding some code to your app that copies the database to the SD card when you want to examine it.

Thanks for your reply!!!

But how to do rooting the phone so that I can copies the database to the SD card or to the system.

Please help me...

Thanks & Regards,
Ajit
 
You don't need to root your phone to copy your database to the SD card if you are working in the same app that created the DB. You already have access to the DB from within your app; after all, you created the file. There are many Java examples for copying a File to another File. You'll need to add SD card permissions to your app, but otherwise it's a simple Java File copy.






Thanks for your reply!!!

But how to do rooting the phone so that I can copies the database to the SD card or to the system.

Please help me...

Thanks & Regards,
Ajit
 
Back
Top Bottom