I have a list view which shows some data pulled out from database. I
am using a helper class to hold the cursor.
When clicked on the listitem, we launch another actvity which shows
more data about the selected item and can be swiped to left/right to
see other items.

but, sometimes the cursor turns out to be null. There is a null check
before launching the activity. but, in onCreate of the next activity
it is null. I cannot figure out why.  I am not closing the database/
cursor in the 1st activity.

I know the design is bad, but can anyone suggest what is causing the
problem ??

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