Did you close de SQLiteDatabase db? Sometimes in my app when i didnt close
my db, my app gave me some exception.
I put this funcion on my activities

@Override
protected void onDestroy() {
super.onDestroy();
dao.cleanup();
}

public void cleanup() {
       if (this.db != null) {
           this.db.close();
           this.db = null;
       }
 }

I hope i could help u


On Wed, Aug 8, 2012 at 7:44 AM, Abhi <
abhishekkaus...@intersoftprofessional.com> wrote:

> Hello,
>
> I am developing an app. It is working fine but if i left the app open for
> few hours the database gets blank sometimes(1 out of 5). I tried hard to
> track the issue but couldn't found any. I am using Sqlite database. Please
> help me as soon as possible.
>
> Thanks
> Abhi
>
> --
> 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




-- 
att,
Pedro Cortez

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