سؤال

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