• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps [Help] Deleting Data from SQLite

If this is the wrong section, kindly move it. Thanks!

I'm developing an android application wherein I can add, view and delete data from SQLite. I'm already done with add and view and my problem is the deleting, I want it to be like this:
GetInline.aspx


so when I go to View all, a "DELETE" button will be shown beside the data, and clicking the button will remove the data from Android's SQLite
 
I dont know what structure your code has. You can manage an sqlite in many ways - i suggest you do it right from the beginning, write table objects and handlers for your connection to your db - so you'll get easy access and can reuse the code.

Found this tutorial after a quick search:
Android SQLite Database Tutorial

after that - just call the delete method of your handler in the onClick of the button...
if you have any specific questions please paste your code!
 
Back
Top Bottom