Which of the following statements is correct about SQLite?
Answer(s): D
Content providers are one of the primary building blocks of Android applications, providing content to applications. They encapsulate data and provide it to applications through the single ContentResolver interface. A content provider is only required if you need to share data between multiple applications. For example, the contacts data is used by multiple applications and must be stored in a content provider. If you don't need to share data amongst multiple applications you can use a database directly via SQLiteDatabase.
http://stackoverflow.com/questions/13542892/android-access-sqlite-database-via-content-provider-orimplement-dao
When including a text file in your application to read from as a resource, what is the recommended location of such file?
Answer(s): C
You should place each type of resource in a specific subdirectory of your project's res/ directory. The raw/ subfolder should contain arbitrary files to save in their raw form.
http://developer.android.com/guide/topics/resources/providing-resources.html
Which of the following statements about DDMS is incorrect?
Answer(s): B
Note: Android Studio includes a debugging tool called the Dalvik Debug Monitor Server (DDMS), which provides port-forwarding services, screen capture on the device, thread and heap information on the device, logcat, process, and radio state information, incoming call and SMS spoofing, location data spoofing, and more.Incorrect:A: LogCat is integrated into DDMS, and outputs the messages that you print out using the Log class along with other system messages such as stack traces when exceptions are thrown.C: DDMS allows you to view how much heap memory a process is using. This information is useful in tracking heap usage at a certain point of time during the execution of your application.To view heap usage for a process:1. In the Devices tab, select the process that you want to see the heap information for.2. Click the Update Heap button to enable heap information for the process.3. In the Heap tab, click Cause GC to invoke garbage collection, which enables the collection of heap data. When the operation completes, you will see a group of object types and the memory that has been allocated for each type. You can click Cause GC again to refresh the data.D: The Telephony Status section of the Emulator controls tab lets you change different aspects of the phone's networks status, speed and latency. The following options are available to you and are effective immediately after you set them:Voice - unregistered, home, roaming, searching, denied Data - unregistered, home, roaming, searching, deniedSpeed - Full, GSM, HSCSD, GPRS, EDGE, UMTS, HSDPA Latency - GPRS, EDGE, UMTS
http://developer.android.com/tools/debugging/ddms.html
Which of the following is incorrect about intents?
Incorrect:A, B: An intent is an abstract description of an operation to be performed. It can be used with startActivity to launch an Activity, broadcastIntent to send it to any interested BroadcastReceiver components, and startService(Intent) or bindService(Intent, ServiceConnection, int) to communicate with a background Service. D: Example:public static final String ACTION_BATTERY_LOW Added in API level 1Broadcast Action: Indicates low battery condition on the device. This broadcast corresponds to the "Low battery warning" system dialog.
http://developer.android.com/reference/android/content/Intent.html
Method onDraw() of class android.view.View has the following signature:
The parameter to onDraw() is a Canvas object that the view can use to draw itself.
http://developer.android.com/training/custom-views/custom-drawing.html
Post your Comments and Discuss Android AND-401 exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the AND-401 content, but please register or login to continue.