[android-developers] empty Cursor after Context.deleteDatabase and data re-added
I implemented a logout function in my application that removes the
user's account, shared preferences, and deletes the database using
context.deleteDatabase(). But after I re-login, and the data is re-
added, when I go into one of my activities using a
SimpleCursorAdapter, I notice that the list is not being populated. I
check the cursor being returned in that class and it has a count of 0,
so no rows are being returned. I also checked in my onPerformSync()
function in my SyncAdapter(), where the data is being re-added, and
the data seems to be re-added to the database. What could be 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+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