Answers to Self-Review Exercises
-
Cursor
.ContentProvider
.getArguments
.result set.
FragmentManager
.Loader
s,LoaderManager
.
-
True.
False. It’s considered good practice to ensure that
Cursor
methodmoveToFirst
returnstrue
before attempting to get data from theCursor
.True.
False. An
Activity
’s orFragment
’sLoader
s are created and managed by itsLoaderManager
(packageandroid.app
), which ties eachLoader
’s lifecycle to itsActivity
’s orFragment
’s lifecycle.True.
False. A
ContentProvider
andContentResolver
handle communication for you—including between apps if yourContentProvider
exposes its data to other apps.
Get Android How to Program, 3/e now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.