Hi all,
I am still having some trouble understanding how I am supposed to
remove rows from my database. Most of the examples I have found use
ContentProviders, which I do not want to publish for my application.
For the other examples, they typically have something like this :
// Remove a task based on its index
public boolean removeTask(long _rowIndex) {
return db.delete(DATABASE_TABLE, KEY_ID + “=” + _rowIndex, null) >
0;
}
which works well, but it means that I would need a Task object to have
an id associated with it. Is this the standard for working with a
database intended for a private application only? To make your objects
store the row ids?
Thanks,
Hamy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---