시도하지 않았다. 대신 콘텐트 프로바이더에서의 데이터 로딩에 초점을 맞췄고, 그러한 사용 사
례를 단순화해주는 특수 목적의 기능이다.
NOTE
_
CursorLoader
는
SQLite
데이터베이스에서 온
Cursor
객체가 아닌 콘텐트 프로바이더에서 전
달된
Cursor
객체하고만 사용할 수 있다.
14.2.1
CursorLoader
사용하기
CursorLoader
는 비동기 실행(
14
.
1
.
3
절 ‘
AsyncTaskLoader
’ 참조)을 구현한
AsyncTaskLoader
추상 클래스의 확장이다.
CursorLoader
는
Cursor
객체(콘텐트 프로바이더로 조회할 수 있는)
를 감시한다. 다시 말해,
CursorLoader
는
Cursor
자료형의 로더고,
Loader
<
Cur
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.