Here's another example, the system settings provider:

http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java<http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java;h=fa5b8c4f7c860fd59df24882be135006bfe68cd5;hb=HEAD>

On Sun, Nov 8, 2009 at 10:59 AM, Mark Murphy <mmur...@commonsware.com>wrote:

> Moto wrote:
> > No one had to do a database update?
>
> Database updates work just fine, at least as of Android 1.5, when I last
> tried them.
>
> To see a database update in action, visit:
>
> http://commonsware.com/AndTutorials
>
> Scroll down, click on the Source Code link, and grab the ZIP file for
> the answers to the tutorials. The 15-Perms/LunchList project has a
> working example of onUpdate() replacing a prior version of a table
> schema. It's a bit elaborate -- ALTER TABLE would be a better choice
> here -- but I wanted to demonstrate the use of temp tables.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://twitter.com/commonsguy
>
> _Beginning Android_ from Apress Now 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<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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

Reply via email to