Re: [android-developers] Database getting blank in android

2012-08-10 Thread Abhi
Thanks Pedro for your reply.
 I had already put all the checks to open or close the database . The thing 
is that this issue is occuring not so often and also it is occuring in 
Samsung gi5800 phone. If i intentionally left the app opened for few hours 
then it won't come. I just want to confirm that whether this error is in my 
code or it is the issue with this phone.

On Wednesday, August 8, 2012 2:15:15 PM UTC-7, Pedro Cortez wrote:

 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 
 abhishe...@intersoftprofessional.comjavascript:
  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-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 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

[android-developers] Database getting blank in android

2012-08-08 Thread Abhi
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

Re: [android-developers] Database getting blank in android

2012-08-08 Thread Pedro Cortez
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