Premium

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



Question : Which of these is the incorrect explanation of the androiddebuggable attribute of the
AndroidManifest.xm tag?

 : Which of these is the incorrect explanation of the androiddebuggable attribute of the
1. If not set, it will be handled as "false".

2. It is necessary to set this to "true" in order to use Eclipse's breakpoint function.

3. Access Mostly Uused Products by 50000+ Subscribers

4. When releasing the application, deleting android:debuggable is recommended.

Correct Answer : Get Lastest Questions and Answer :
Explanation:




Question : Which of these is the correct description of file access?


 : Which of these is the correct description of file access?
1. Generally, files are handled as dedicated resources per each application.

2. Files created by an application can be directly accessed by any application.

3. Access Mostly Uused Products by 50000+ Subscribers

4. In order to access a file, the open FileStream method is provided in the Context class


Correct Answer : Get Lastest Questions and Answer :
Explanation:




Question : Which of these is the correct method to persist SharedPreferences?

 : Which of these is the correct method to persist SharedPreferences?
1. XML file

2. SQLite

3. Access Mostly Uused Products by 50000+ Subscribers

4. Java object

Correct Answer : Get Lastest Questions and Answer :
Explanation: Interface for accessing and modifying preference data returned by getSharedPreferences(String, int). For any particular set of preferences, there is a single instance of this class that all clients share. Modifications to the preferences must go through an SharedPreferences.Editor object to ensure the preference values remain in a consistent state and control when they are committed to storage. Objects that are returned from the various get methods must be treated as immutable by the application.

Note: currently this class does not support use across multiple processes. This will be added later
To obtain shared preferences, use the following method In your activity:

SharedPreferences prefs = this.getSharedPreferences(
"com.example.app", Context.MODE_PRIVATE);
To read preferences:

String dateTimeKey = "com.example.app.datetime";

// use a default value using new Date()
long l = prefs.getLong(dateTimeKey, new Date().getTime());
To edit and save preferences

Date dt = getSomeDate();
prefs.edit().putLong(dateTimeKey, dt.getTime()).apply();
The android sdk's sample directory contains an example of retrieving and storing shared preferences. Its located in the:

/samples/android-/ApiDemos directory


Related 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.


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


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


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

 : Which of these is the correct explanation of SQLite?
1. It is an object database.

2. It is client-server format.

3. Access Mostly Uused Products by 50000+ Subscribers

4. It can be accessed by other applications through ContentProvider


Question : Which is the processing that cannot be executed by using the emulator during development?

 : Which is the processing that cannot be executed by using the emulator during development?
1. Displaying information of the heap and threads.

2. Emulation of outgoing calls

3. Access Mostly Uused Products by 50000+ Subscribers

4. Receiving E-mail


Question : Which of these is the correct explanation of the Android license form?

 : Which of these is the correct explanation of the Android license form?
1. It is necessary to register with Android Market and pay a license fee in order to develop a paidfor
application on Android.

2. There is no special provision regarding application license operation on Android.

3. Access Mostly Uused Products by 50000+ Subscribers
not made public.

4. Since Android uses libraries licensed in various ways such as GPL, BSD, and LGPL,
applications developed under Android are subject to the severest license, GPL