Intents - Answers Typically used to launch activities - they indicate an action to be performed and the
data on which that action is to be performed.
RecyclerView - Answers A flexible, customizable view that enables you to control how an app displays a
scrolling list of data
Lengthy data access should never be done in the UI thread; otherwise, the app will display a(n)
_________ dialog - typically after five seconds of inactivity - Answers ANR (Application not responding)
An Intent is a description of an action to be performed with associated __________ - Answers data
Explicit Intents - Answers Specify an exact Activity class to run in the same app.
Class RecyclerView formalizes the view-holder pattern by requiring you to create a subclass of
_________ - Answers RecyclerView.ViewHolder
LinearLayoutManager - Answers A subclass of RecyclerView.LayoutManager that can be used to display
items in a vertical list
(T/F) Extensive input/output should be performed on the UI thread; otherwise this will affect your app's
responsiveness. - Answers False (should NOT be used)
(T/F) RecyclerView was designed as a better ListView. It provides better separation of the data's
presentation from the RecyclerView's capabilities for reusing views, as well as more flexible
customization options for presenting the RecyclerView's items - Answers True
(T/F) An AlertDialog.Builder's setList method receives a String array resource containing names of the
options to display as a list in the dialog as a list in the dialog and an event handler that's called when the
user touches one of the items in the list. - Answers False (The AlertDialog.Builder's setItems method
does this)
(T/F) Each RecyclerView item has a corresponding object of a subclass of class RecyclerView.ViewHolder
that maintains references to the item's view(s) for reuse. - Answers True
A layout fills the entire client area of the screen if the layout's Width and Height properties window (in
the Layout Parameters section of the Properties window) are each set to _________ - Answers
match_parent
_________ object stores key-value pairs - Answers SharedPreference
Collections.sort - Answers A static method of class Collections from package java.util, sorts the List in its
first argument
Intent chooser - Answers A GUI that shows a list of apps that can handle a specified Intent.
, RecyclerView.ItemDecoration - Answers Can be used to display a line between RecyclerView items.
(T/F) An Algorithm specifies an action to be performed and the data to be acted upon - Android uses
Algorithms to launch the appropriate activities - Answers False (Intent)
(T/F) You implement interface View.OnclickListener of package android.view to specify the code that
should execute when the user touches a Button - Answers True
(T/F) The first argument passed to Intent's constructor is the data to be operated on - Answers False
(T/F) An explicit Intent allows the system to launch the most appropriate Activity based on the type of
data - Answers False (implicit)
Cursor - Answers Manages a SQLite database query results.
ContentProvider - Answers Exposes an app's data for use in that app or in other apps
getArguments - Answers A Fragment method that returns the bundle of arguments to the Fragment
result set - Answers A Cursor returned by method query contains all the table rows that match the
method's arguments.
A Fragment Transaction (package android.app) obtained from the _________ allows an Activity to add,
remove, and transition between Fragments - Answers FragmentManager
_________ and the _________ help you perform asynchronous data access from any Activity or
Fragment - Answers Loaders, Load Manager
(T/F) It's good practice to release resources like database connections when they are not being used so
that other activities can use the resources - Answers True
(T/F) It's considered good practice to ensure that Cursor method moveToFirst returns false before
attempting to get data from the Cursor - Answers False (returns true)
(T/F) A ContentProvider defines URIs that help determine the task to perform when the ContentProvider
receives a request - Answers True
(T/F) An Activity's or Fragment's LoadManagers are tied to the Activity's or Fragment's lifecycle -
Answers False
(T/F) To invoke a ContentProvider's query, insert, update, and delete capabilities, you use the
corresponding methods of ContentResolver - Answers True
(T/F) You must coordinate communication between a ContentProvider and ContentResolver - Answers
False (they handle it for you)
To see your apps on Google Play, you'll need a(n) _________ merchant account - Answers Google
Payments