Android Development Fundamentals: SQLite and Content Providers
Covers Android platform features including SQLite databases, Content Providers, Intents, and resource management
Questions
Android resources stored in_______ of Android Application directory structure, are not compiled into binary format.
- /res/raw
- /res/xml
- /res/layout
- Both, a & b above
- None of above
Intent is an action with its associated data URI. You can use intents to invoke internal or external components from your application.
- True
- False
Linkify is a helper class that automatically creates hyperlinks within Text View (and Text View-derived) classes
- True
- False
Pending Intent is commonly used to package an Intent that will be fired in response to a future event, such as a widget View being clicked or a Notification being selected from the notification panel.
- True
- False
In addition to its primary attributes of action and data URI, intent can include additional attributes called extras. An extra can provide more information to the component that receives the intent. It is accessed using -
- Intent.getIntentExtras()
- Intent.getExtras()
- Bundle.getExtras()
- None of above
During start-up, Android looks for activities whose category (also known as a tag) is marked as CATEGORY_LAUNCHER. It then picks up these activity names and icons and places them on the home screen to launch.
- True
- False
The SQLite3 has been implemented as a ______________ that's included as part of the Android software stack
- Compact C Library
- C++ Library
- Java Library
- None of above
In SQLite3 database, Files (such as bitmaps or audio files) are usually stored within database tables.
- True
- False
What is the use of –e option in following adb command – adb –e shell
- Informs adb to use the connected real device
- Informs adb to use the emulator
- Returns an error
- None of above
________ objects are used to insert new rows into database tables
- ContentValues
- ContentValue
- CursorFactory
- None of above
In SQLite database, there is a strict type checking when assigning or extracting values from each column within a row.
- True
- False
Select Native Android Content Provider(s) from the list below.
- Browser
- MediaStore
- Contacts
- CallIndex
- All of above
- a, b & c Above
You may declare ContentProvider with a element in the application's AndroidManifest.xml file
- True
- False
_______ is the Android way of doing IPC that is interface based and lightweight
- Android Interface Description Language
- Android Inter-process Description Language
- Android Definition Language
- None of above
Identify “Authority” part of below Content URI - content://contacts/people/3
- People
- Contacts
- Contacts.people
- 3
- None of above
Select the static Helper method(s) to append an ID to a ContentProvider URI
- ContentUris.withAppendedId()
- Uri.withAppendedPath()
- Both a and b above
- None of above
Content providers that are not declared in the manifest file are also visible to the Android system
- True
- False
To query content provider, both methods ________ and ______ return a Cursor object and takes the same set of arguments.
- ContentResolver.query(), Activity.managedQuery()
- Activity.query(), ContentResolver.managedQuery()
- ContentResolver.makeQuery(), Activity.managedQuery()
- None of above
Requests to ContentResolver are automatically forwarded to the appropriate Content Provider instance
- True
- False
If you don't need to share data amongst multiple applications, then you can use a database directly using -
- Content Provider
- Intent
- SQLite Database
- None of above