Premium

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



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()

Correct Answer : Get Lastest Questions and Answer :
Explanation: uring normal app use, the foreground activity is sometimes obstructed by other visual components that cause the activity to pause. For example, when a semi-transparent activity opens (such as one in the style of a dialog), the previous activity pauses. As long as the activity is still partially visible but currently not the activity in focus, it remains paused.

However, once the activity is fully-obstructed and not visible, it stops (which is discussed in the next lesson).

As your activity enters the paused state, the system calls the onPause() method on your Activity, which allows you to stop ongoing actions that should not continue while paused (such as a video) or persist any information that should be permanently saved in case the user continues to leave your app. If the user returns to your activity from the paused state, the system resumes it and calls the onResume() method.

Note: When your activity receives a call to onPause(), it may be an indication that the activity will be paused for a moment and the user may return focus to your activity. However, it's usually the first indication that the user is leaving your activity.




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"


Correct Answer : Get Lastest Questions and Answer :
Explanation: If you want to have fixed orientation for your activities then you can use-

android:screenOrientation="portrait"
as an attribute to that activity in that manifest. But if you want to set the orientation runtime depending upon what was the previous orientation while launching the application, you need to check for the previous orientation in onCreate() and then set it to that value programmatically there itself using setRequestedOrientation()






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

Correct Answer : Get Lastest Questions and Answer :
Explanation:


Related Questions


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


Question : Which of these URI schemes is not supported by Android?

 : Which of these URI schemes is not supported by Android?
1. android://

2. content://

3. Access Mostly Uused Products by 50000+ Subscribers

4. market://search?



Question : Which function is not provided by the Android Development Tools Plugin?

 : Which function is not provided by the Android Development Tools Plugin?
1. Creating an Android project

2. Creating supporting resource files

3. Access Mostly Uused Products by 50000+ Subscribers

4. Supporting creation of a View


Question : The following program uses an Intent to open a Web page designated by a Web browser. Which is
the correct code that goes into (1)?

Intent intent = new Intent (" (1) " , Uri.parse("http://www.HadoopExam.com/logo.jpg"));
startActivity(intent);


 : The following program uses an Intent to open a Web page designated by a Web browser. Which is
1. android.intent.VIEW

2. android.intent.action.VIEW

3. Access Mostly Uused Products by 50000+ Subscribers

4. androidJntent.action.View


Question : Which code acquires a MediaPlayer class instance?

 : Which code acquires a MediaPlayer class instance?
1. MediaPlayer.create(this, R.raw.music);

2. newMediaPlayer(this, R.raw.music);

3. Access Mostly Uused Products by 50000+ Subscribers

4. MediaPlayer.newInstancefthis, R.raw.music),