문제

Default Android CursorLoader uses ContentProvider and knows about all inserts, updates, ... SQLiteCursorLoader doesn't know, but I'm curious about the best pattern for sharing SQLiteCursorLoader object between activities. Is it possible at all?

도움이 되었습니까?

해결책

Do not share loaders, period, whether it is SQLiteCursorLoader, CursorLoader, or any other Loader. They are only for use by the activity/fragment that created them.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top