android – SimpleCursorAdapter,在API级别下交换光标低于11

前端之家收集整理的这篇文章主要介绍了android – SimpleCursorAdapter,在API级别下交换光标低于11前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
试图实现LoaderManager CursorLoader.

在onFinish方法适配器应交换其光标

  1. public void onLoadFinished(Loader<Cursor> loader,Cursor data) {
  2. // Swap the new cursor in. (The framework will take care of closing the
  3. // old cursor once we return.)
  4. mAdapter.swapCursor(data);
  5. }

但是,自API级别11以来,swapCursor可用.

那么我应该如何在android API 10中交换光标呢?

解决方法

猜你在找的Android相关文章