什麼是自嘲startManagingCursor的原因是什麼?Android:棄用startManagingCursor的原因是什麼?
我簡單的應用程序具有從DB數據列表的表視圖。所以,我現在在的onCreate:
final Cursor cursor = getDataFromDB();
startManagingCursor(cursor);
setListAdapter(new CursorAdapter(cursor));
和多數民衆贊成它,我不需要做別的......
但現在startManagingCursor已經過時了,我應該實現LoaderCallbacks,覆蓋onCreateLoader, onLoadFinished,onLoaderReset,爲我的數據庫創建ContentProvider等等。但我不需要所有這些員工,我只需要從DB獲取幾行信息。怎樣成爲 ?爲什麼android會這樣做?我爲什麼要實施所有這些員工?
我想,你應該參考[Android的startManagingCursor已棄用](http://stackoverflow.com/questions/9771582/android-eclipse-startmanagingcursor-deprecated-but-want-to-support-older-api-ver )。 – Sajmon