Premium
Associate Android Developer Certification Questions and Answer (Dumps and Practice Questions)
Question : Which of the following is incorrect about intents?
1. They can be used to start an Activity
2. They can be used to start a service
3. Access Mostly Uused Products by 50000+ Subscribers
4. They can be used to start a dialog-themed activity.
Correct Answer
:
Get Lastest Questions and Answer
:
Explanation:
Question : Method onDraw() of class android.view.View has the following signature:
1. public void onDraw(Color)
2. public void onDraw(Canvas)
3. Access Mostly Uused Products by 50000+ Subscribers
4. public Canvas onDraw()
Correct Answer
:
Get Lastest Questions and Answer
:
Explanation:
protected void onDraw (Canvas canvas)
Added in API level 1
Implement this to do your drawing.
Parameters
canvas the canvas on which the background will be drawn
Question : To add a new Activity to your application, you need to perform the following steps:
1. Create a Java class that extends View, set a layout, and add an Activity tag in AndroidManifest.xml
2. Create layout resource only.
3. Access Mostly Uused Products by 50000+ Subscribers
4. Add an Activity tag to AndroidManifest.xml, and add ACTIVITY permission.
Correct Answer
:
Get Lastest Questions and Answer
:
Explanation:
Related Questions
Question : What does the Android project folder "res/" contain?
1. Java Activity classes
2. Resource files
3. Java source code
4. Libraries
Question : What does this code do?
Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.setData(android.net.Uri.parse("http://www.androidatc.com"));
startActivity(intent);
1. Starts a sub-activity
2. Starts a service
3. Sends results to another activity.
4. Starts an activity using an implicit intent.
Question : Which of the following is a Java call-back method invoked when a view is clicked?
1. Detector
2. OnTapListener
3. OnClickDetector
4. OnClickListener
Question : Which of the following is not an Activity lifecycle call-back method?
1. onStart
2. onCreate
3. onPause
4. onBackPressed
Question : Which method is used to close an activity?
1. Destroy()
2. Finish()
3. Stop()
4. Close()
Question : Which of the following Activity life-cycle methods is called once the activity is no longer visible?
1. onStop
2. onPause
3. onDestroy
4. onHide