Thanks a lot for the previous answered questions.Now, I am developing an application having the database implementation. I used the database queries to retrieve the data from Database but unable to display the retrieved data records as a list of an activity. Please suggest me with the sample code.
Thanks a lot for the previous answered questions.Now, I am developing an application having
Share
1)u need to add data to arraylist and set the arryalistobject to setlistadapter.2)
ArrayList results = new ArrayList();
Cursor c = sqLiteDatabase.rawQuery(“SELECT * FROM MY_TABLE “,null);