2021
09-10
09-10
Android sqlite cursor的遍历实例详解
查询并获得了cursor对象后,用while(corsor.moveToNext()){}遍历,当corsor.moveToNext()方法调用,如果发现没有对象,会返回falsepublicList<MMImage>getAll(){List<MMImage>list=newArrayList<MMImage>();Cursorc=null;try{c=database.query(TABLE,null,null,null,null,null,null);while(c.moveToNext()){MMImagemmImage=getMMImageFr...
继续阅读 >