[Solved] show data in listview from sqlite database in android [closed]


Firstly intialize db then call retrive() method:

Replace:

retrive();
setListAdapter(adapter);
db =new MyDBHandler(MyListActivity.this);

To:

db =new MyDBHandler(MyListActivity.this);
retrive();
setListAdapter(adapter);

2

solved show data in listview from sqlite database in android [closed]