早教吧 育儿知识 作业答案 考试题库 百科 知识分享

求解,有关cursor的方法movetoposition请问当movetoposition的参数传入值为-1时,返回值是什么?在androiddevelopers里是只说明了范围是从-1~count,并没有说明传入-1时是啥。publicabstractbooleanmoveToPosit

题目详情
求解,有关cursor的方法movetoposition
请问 当movetoposition的参数传入值为-1时,返回值是什么?在android developers里是只说明了范围是从-1~count,并没有说明传入-1时是啥。public abstract boolean moveToPosition (int position) Move the cursor to an absolute position. The valid range of values is -1 <= position <= count. This method will return true if the request destination was reachable, otherwise, it returns false.Parametersposition the zero-based position to move to.Returns[*]whether the requested move fully succeeded.
▼优质解答
答案和解析
-1哪行神马都没有。cursor是个游标,初始位置是-1.通过movetonext获取到第一行,第二行。。。。。直到全部获取完。你给他传值-1如果取值的话。估计会报错吧
看了求解,有关cursor的方法m...的网友还看了以下: