Premium

Associate Android Developer Certification Questions and Answer (Dumps and Practice 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

Correct Answer : Get Lastest Questions and Answer :
Explanation: public static final String BLUETOOTH

Added in API level 1
Allows applications to connect to paired bluetooth devices.

Protection level: normal

Constant Value: "android.permission.BLUETOOTH"
public static final String BLUETOOTH_ADMIN

Added in API level 1
Allows applications to discover and pair bluetooth devices.

Protection level: normal

Constant Value: "android.permission.BLUETOOTH_ADMIN"




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

Correct Answer : Get Lastest Questions and Answer :
Explanation: SensorManager lets you access the device's sensors. Get an instance of this class by calling Context.getSystemService() with the argument SENSOR_SERVICE.

Always make sure to disable sensors you don't need, especially when your activity is paused. Failing to do so can drain the battery in just a few hours. Note that the system will not disable sensors automatically when the screen turns off.




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

Correct Answer : Get Lastest Questions and Answer :
Explanation: A toast provides simple feedback about an operation in a small popup. It only fills the amount of space required for the message and the current activity remains visible and interactive. For example, navigating away from an email before you send it triggers a "Draft saved" toast to let you know that you can continue editing later. Toasts automatically disappear after a timeout.

If a simple text message isn't enough, you can create a customized layout for your toast notification. To create a custom layout, define a View layout, in XML or in your application code, and pass the root View object to the setView(View) method.


Related Questions


Question : You can create a custom view by extending class:

 : You can create a custom view by extending class:
1. android.widget.View

2. android.widget.LinearLayout

3. Access Mostly Uused Products by 50000+ Subscribers

4. android.content.Context


Question : In which Activity life-cycle method you should do all of your normal static set up such as: creating views and bind data to lists?

 : In which Activity life-cycle method you should do all of your normal static set up such as: creating views and bind data to lists?
1. onResume()

2. onStart()

3. Access Mostly Uused Products by 50000+ Subscribers

4. onPause()


Question : Which of the following lines of code starts activity Activity from a current activity Activity?
 : Which of the following lines of code starts activity Activity from a current activity Activity?
1. Intent intent = new Intent(this,new Activity2());
startActivity(intent);

2. Intent intent = new Intent(new Activity2());
startActivity(intent);

3. Access Mostly Uused Products by 50000+ Subscribers
startActivity(intent);

4. Intent intent = new Intent(this,Activity2.class);
startActivity(intent);


Question : Which of the following methods is called in an Activity when another activity gets into the foreground?

 : Which of the following methods is called in an Activity when another activity gets into the foreground?
1. onStop()

2. onPause()

3. Access Mostly Uused Products by 50000+ Subscribers

4. onExit()


Question : Which of the following attributes is used to set an activity screen to landscape orientation?


 : Which of the following attributes is used to set an activity screen to landscape orientation?
1. screenorientation = landscape

2. screenOrientation="landscape"

3. Access Mostly Uused Products by 50000+ Subscribers

4. android:screenOrientation="landscape"



Question : What is not true about the AndroidManifest.xml file?

 : What is not true about the AndroidManifest.xml file?
1. It declares the views used within the application

2. It declares user permissions the application requires

3. Access Mostly Uused Products by 50000+ Subscribers

4. It declares hardware and software features used within the application