Android - load values from sqlite database to an arraylist

后端 未结 3 1158
盖世英雄少女心
盖世英雄少女心 2021-02-04 17:34

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.



        
3条回答
  •  深忆病人
    2021-02-04 18:16

    Probably your query is drawing a blank and moveToFirst is returning false.

    What about logging the value of c.getCount() before your if statement?

提交回复
热议问题