Premium

Associate Android Developer Certification Questions and Answer (Dumps and Practice Questions)



Question : Which is the correct explanation of ListView?

 : Which is the correct explanation of ListView?
1. It is necessary to use ListView as a set with ListActivity.

2. You cannot use a ListView when there is no information to be displayed.

3. When displaying a list of Strings using an ArrayAdapter class in ListView, you must save the value in anArrayList.

4. ListView has a function to display a list of uniquely defined Views other than TextView.

Correct Answer : Get Lastest Questions and Answer :
Explanation: ListView is a view group that displays a list of scrollable items. The list items are automatically inserted to the list using an Adapter that pulls content from a source such as an array or database query and converts each item result into a view that's placed into the list.




Question : Which of following is incorrect about the Toast class?

 : Which of following is incorrect about the Toast class?
1. You cannot set a custom layout for a Toast.

2. A Toast can only created by an Activity class

3. Access Mostly Uused Products by 50000+ Subscribers

4. A Toast is displayed for only one of the following periods: Toast.LENGHT_SHORT orToast.LENGTH_LONG

Correct Answer : Get Lastest Questions and Answer :
Explanation: A toast is a view containing a quick little message for the user. The toast class helps you create and show those.

When the view is shown to the user, appears as a floating view over the application. It will never receive focus. The user will probably be in the middle of typing something else. The idea is to be as unobtrusive as possible, while still showing the user the information you want them to see. Two examples are the volume control, and the brief message saying that your settings have been saved.

The easiest way to use this class is to call one of the static methods that constructs everything you need and returns a new Toast object.




Question : Which does not have a lifecycle?

 : Which does not have a lifecycle?
1. Service

2. MediaPlayer

3. Access Mostly Uused Products by 50000+ Subscribers

4. Activity

Correct Answer : Get Lastest Questions and Answer :
Explanation: ontent 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.

When a request is made via a ContentResolver the system inspects the authority of the given URI and passes the request to the content provider registered with the authority. The content provider can interpret the rest of the URI however it wants. The UriMatcher class is helpful for parsing URIs.
The primary methods that need to be implemented are:

onCreate() which is called to initialize the provider
query(Uri, String[], String, String[], String) which returns data to the caller
insert(Uri, ContentValues) which inserts new data into the content provider
update(Uri, ContentValues, String, String[]) which updates existing data in the content provider
delete(Uri, String, String[]) which deletes data from the content provider
getType(Uri) which returns the MIME type of data in the content provider


Related Questions


Question : Which approval is necessary to execute Bluetooth actions such as connection requests,
connection receipt, and data forwarding?

 : Which approval is necessary to execute Bluetooth actions such as connection requests,
1. BLUETOOTH

2. BLUETOOTH_ADMIN

3. Access Mostly Uused Products by 50000+ Subscribers

4. ACCOUNT MANAGER


Question : Which class is used when a sensor is accessed?

 : Which class is used when a sensor is accessed?
1. SensorEventListener

2. SensorEvent

3. Access Mostly Uused Products by 50000+ Subscribers

4. Sensor


Question : Which of these is the incorrect explanation of the Toast class?

 : Which of these is the incorrect explanation of the Toast class?
1. Toast is a simple class for display, and cannot be set with a custom XML-defined layout

2. The display duration time of Toast can be chosen from 2 types, LENGTHJjDNG and LENGTH_SHORT.

3. Access Mostly Uused Products by 50000+ Subscribers

4. Since Toast automatically closes after display, a dismiss () method is not provided


Question : Which ContentProvider does Android not provide as a standard?

 : Which ContentProvider does Android not provide as a standard?
1. A telephone log

2. A database

3. Access Mostly Uused Products by 50000+ Subscribers

4. A contact list


Question : Which of these is the incorrect explanation of SQLite?

 : Which of these is the incorrect explanation of SQLite?
1. There are 5 types of data type stored in column; Null, Integer, Real, Text, and Blob.

2. There are restrictions on some functions of SQLite loaded on Android

3. Access Mostly Uused Products by 50000+ Subscribers

4. SQLite is a database that saves data in a single file


Question : When executing android.content.Context.openFileOutput("sample.txt", ), which path is the file stored in?


 : When executing android.content.Context.openFileOutput(
1. /data/app//files

2. /data/data//files

3. Access Mostly Uused Products by 50000+ Subscribers

4. /system/data//files