1. Download our Official Android App: Forums for Android!

Apps [Help] Deleting Data from SQLite

Discussion in 'Android Development' started by junchronick, Apr 18, 2013.

  1. junchronick

    junchronick Lurker
    Thread Starter
    Rank:
    None
    Points:
    26
    Posts:
    3
    Joined:
    Apr 18, 2013

    Apr 18, 2013
    3
    1
    26
    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:
    [​IMG]

    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
     

    Advertisement

  2. LogicWorX

    LogicWorX Lurker
    Rank:
    None
    Points:
    25
    Posts:
    8
    Joined:
    Apr 5, 2013

    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!
     
  3. miks1234

    miks1234 Lurker
    Rank:
    None
    Points:
    5
    Posts:
    7
    Joined:
    Aug 24, 2010

    Aug 24, 2010
    7
    0
    5

Share This Page

Loading...