Re: [android-developers] sqlite databases and non-rooted phones

2012-02-01 Thread Kostya Vasilyev

On 02/01/2012 08:36 PM, John Davis wrote:
Any suggestions on how to work on the database on a non-rooted phone? 
 I would prefer to use the database on the phone rather than on a pc.


You can add code in the app to copy the database from the app's storage 
directory in internal memory to the memory card, then pull the file to 
the PC and examine.


This code can be in a separate app, if you so desire - you can access 
the main app's files by using a sharedUserId (not recommended for 
production use, but can be useful for debugging).


-- Kostya

--
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] sqlite databases and non-rooted phones

2012-02-01 Thread John Davis
Hello Kostya Vasiyev,

Many thanks.  I see what you mean.  I could add an import/export command to
the app.  And in the final release, simply remove the import/export
capability.

John

On Wed, Feb 1, 2012 at 11:43 AM, Kostya Vasilyev kmans...@gmail.com wrote:

 On 02/01/2012 08:36 PM, John Davis wrote:

 Any suggestions on how to work on the database on a non-rooted phone?  I
 would prefer to use the database on the phone rather than on a pc.


 You can add code in the app to copy the database from the app's storage
 directory in internal memory to the memory card, then pull the file to the
 PC and examine.

 This code can be in a separate app, if you so desire - you can access the
 main app's files by using a sharedUserId (not recommended for production
 use, but can be useful for debugging).

 -- Kostya

 --
 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.comandroid-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en




-- 
John F. Davis

独树一帜

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] sqlite databases and non-rooted phones

2012-02-01 Thread Mark Murphy
2012/2/1 John Davis davi...@gmail.com:
 Many thanks.  I see what you mean.  I could add an import/export command to
 the app.  And in the final release, simply remove the import/export
 capability.

Or, name it backup/restore and leave it in as a feature.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.4
Available!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en