Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

test: Reply
 
LinkBack Thread Tools
Old September 9th, 2010, 05:22 AM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Aug 2010
Posts: 9
 
Device(s):
Carrier: Not Provided

Thanks: 5
Thanked 0 Times in 0 Posts
Default 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

Advertisements
ajitandroid26 is offline  
Reply With Quote
sponsored links
Old September 10th, 2010, 07:07 AM   #2 (permalink)
Member
 
Join Date: Aug 2010
Location: Norway
Posts: 313
 
Device(s): Samsung Galaxy Nexus
Carrier: Not Provided

Thanks: 0
Thanked 53 Times in 51 Posts
Default

I think you have to root your phone to gain access to that folder.
miXer is offline  
Reply With Quote
The Following User Says Thank You to miXer For This Useful Post:
ajitandroid26 (September 12th, 2010)
Old September 10th, 2010, 09:19 AM   #3 (permalink)
New Member
 
Join Date: May 2010
Posts: 12
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 1 Time in 1 Post
Default

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.
RNekic is offline  
Reply With Quote
The Following User Says Thank You to RNekic For This Useful Post:
ajitandroid26 (September 12th, 2010)
Old September 12th, 2010, 11:02 PM   #4 (permalink)
New Member
Thread Author (OP)
 
Join Date: Aug 2010
Posts: 9
 
Device(s):
Carrier: Not Provided

Thanks: 5
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by RNekic View Post
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
ajitandroid26 is offline  
Reply With Quote
Old September 12th, 2010, 11:04 PM   #5 (permalink)
New Member
Thread Author (OP)
 
Join Date: Aug 2010
Posts: 9
 
Device(s):
Carrier: Not Provided

Thanks: 5
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by miXer View Post
I think you have to root your phone to gain access to that folder.

Thanks for your reply!!!

How to do that?
Please help me through sample code or by providing some example or useful sites.

Thanks & Regards,
Ajit
ajitandroid26 is offline  
Reply With Quote
Old September 13th, 2010, 12:25 AM   #6 (permalink)
Member
 
Join Date: Aug 2010
Location: Norway
Posts: 313
 
Device(s): Samsung Galaxy Nexus
Carrier: Not Provided

Thanks: 0
Thanked 53 Times in 51 Posts
Default

You can look at this sticky. It will answer all your questions. Rooting: A quick guide (Updated 3/10/09)
miXer is offline  
Reply With Quote
Old September 21st, 2010, 09:40 AM   #7 (permalink)
New Member
 
Join Date: May 2010
Posts: 12
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 1 Time in 1 Post
Default

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.






Quote:
Originally Posted by ajitandroid26 View Post
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
RNekic is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:13 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.