[android-developers] Crashed service restarted by system doesn't call onStart

2009-03-31 Thread Charles Harley
I have noticed that if my background service crashes the system will automatically restart the service after 5 seconds. This is great, but I have noticed that only the onCreate method gets called and not the onStart method. Does this mean the service is properly restarted or do I need to do

[android-developers] Re: Caching a content provider

2009-02-03 Thread Charles Harley
I have submitted a RFE to cache the content provider. If you are keen to see this implemented add your vote. http://code.google.com/p/android/issues/detail?id=1907 Charles On Feb 2, 5:07 pm, Charles Harley charles.har...@googlemail.com wrote: Unfortunately I have to use thecontentprovider, I

[android-developers] Caching a content provider

2009-02-02 Thread Charles Harley
I am performing hundreds of calls to a single content provider to perform various insertions, updates and deletions. After profiling my application, I have noticed that the ContentResolver class takes approx. 30ms to retrieve the corresponding content provider object for each call. Is there

[android-developers] Re: Caching a content provider

2009-02-02 Thread Charles Harley
are better off with a private database: If you don't need to share data amongst multiple applications you can use a database directly via SQLiteDatabase. http://code.google.com/android/reference/android/content/ContentProvi... Peli On Feb 2, 5:42 pm, Charles Harley charles.har...@googlemail.com

[android-developers] Validate preferences and save multiple changes at the end of a group of edits

2008-11-25 Thread Charles Harley
I am very impressed with the shared preferences framework within Android and the ability to specify preferences in an XML file. However, I would like to perform validation on preferences, particularly on preferences within a child preference screen. Is this possible and if so is there a standard