I am learning Android. I have a problem and I can\'t solve it. I want to retrieve data from an existing database and display it in a TextView
after click button
You may use this following code actually it is rough but plz check it out
db = openOrCreateDatabase("sms.db", SQLiteDatabase.CREATE_IF_NECESSARY, null);
Cursor cc = db.rawQuery("SELECT * FROM datatable", null);
final ArrayList row1 = new ArrayList();
final ArrayList row2 = new ArrayList();
if(cc!=null) {
cc.moveToFirst();
startManagingCursor(cc);
for (int i=0; i