I am new to android . I have an application working with SQLite DB. I need to push values from database to an arraylist of type object. The code i used is given here.
Probably your query is drawing a blank and moveToFirst is returning false.
moveToFirst
What about logging the value of c.getCount() before your if statement?
c.getCount()
if