Re: [android-developers] SQLite database is puffed every time I run my app.
On 01/12/2011 07:53 PM, Kumar Bibek wrote:
> You should change your Version of database to let it call the onUpgrade method. Really, it should. And, the onCreate should not be
> called everytime.
I have tried incrementing the version. What's odd is that the onUpgrade method
never gets called.
> It seems that your onUpgrade method is being called, and everytime you run the app, it deletes all the tables and recreates them.
> That should explain why your tables are empty. Check the logcat for more info. It should be there.
No, just the onCreate() is being called. Not sure why that puffs the data.
Thanks,
Tobiah
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home