I’ve created an Android app with a pre-populated SQLite database(using SQLite Browser). Copying the file to the /data path on my phone worked perfectly, but I can’t seem to get my head around something.
I need to get a row from a given ID, set this result in TextViews and when another ID is given update the TextViews with the new result. This ofcourse should be quite easy, so I’ve read everything from tutorials to information on the Android dev site and SO. For some reason I just don’t seem to get this. Can someone help me get started with this or link me to some resource that explains this particulair situation?
Thank you.
Use Cursor to get data from the database
Create getDetails() method in Database Class.
Hope it helps