Premium

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



Question : Which of the following is NOT true about class DefaultHttpClient?

 : Which of the following is NOT true about class DefaultHttpClient?
1. It supports HTTPS.

2. It supports streaming uploads and downloads.

3. It is only supported on Android versions 2.2 and older.

4. It is Andriod's default implementation of an HTTP client.

Correct Answer : Get Lastest Questions and Answer :
Explanation:




Question : Which of the following is NOT true about the SharedPreferences interface?

 : Which of the following is NOT true about the SharedPreferences interface?
1. The data it saves is persistent even if application is killed.

2. It only saves primitive data in key-value pairs.

3. Modifications to preferences saved should go through class SharedPreferences.Editor

4. It can save any data type in key-value pairs

Correct Answer : Get Lastest Questions and Answer :
Explanation: If you have a relatively small collection of key-values that you'd like to save, you should use the SharedPreferences APIs. A SharedPreferences object points to a file containing key-value pairs and provides simple methods to read and write them. Each SharedPreferences file is managed by the framework and can be private or shared.
The SharedPreferences class provides a general framework that allows you to save and retrieve persistent key-value pairs of primitive data types. You can use SharedPreferences to save any primitive data: booleans, floats, ints, longs, and strings.




Question : What does the following code do?

dialog.getWindow().setFlags(LayoutParams.FLAG_BLUR_BEHIND, LayoutParams.FLAG_BLUR_BEHIND);

 : What does the following code do?
1. When dialog is displayed the activity behind it will be blurred.

2. When dialog is displayed the activity behind it will be dimmed.

3. Any EditText behind the dialog will be disabled.

4. When the dialog is displayed, the edges of the dialog will be blurred.

Correct Answer : Get Lastest Questions and Answer :
Explanation: However, The field WindowManager.LayoutParams.FLAG_BLUR_BEHIND is deprecated


Related Questions


Question : Which of the following sets the entire Activity window as a WebView?


 : Which of the following sets the entire Activity window as a WebView?
1. WebView webview = new WebView(this);
webview.setAsWindow;

2. setContentView(R.layout.webview);

3. Access Mostly Uused Products by 50000+ Subscribers
setContentView(webview);

4. setContentView("http://www.androidatc.com");



Question : Consider the following the code:
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.game_menu, menu);
return true;
}
Which of the following is true about the code above?

 : Consider the following the code:
1. The code is auto generated and should not be edited

2. This method handles clicks and assign actions to menu items

3. Access Mostly Uused Products by 50000+ Subscribers

4. This method inflates an XML file in the res/layout folder into layout.


Question : Consider the following AndroidManifest.xml file:













Supposing the application connects to the internet at startup, which of the following is true?

 : Consider the following AndroidManifest.xml file:
1. The application throws an exception indicating it does not have permission to access the URL

2. The application will work as intended

3. Access Mostly Uused Products by 50000+ Subscribers

4. The application throws a java.lang.SecurityException


Question : Which of the following is not true about using a WebView in your application?

 : Which of the following is not true about using a WebView in your application?
1. You can retrieve WebSettings with getSettings(), then enable/disable JavaScript

2. You need to add permission "android.permission.ACCESS_NETWORK_STATE"

3. Access Mostly Uused Products by 50000+ Subscribers

4. You use loadData to load HTML


Question : Which of the following is NOT true about class AsyncTask?

 : Which of the following is NOT true about class AsyncTask?
1. It must be used by sub-classing it.

2. It must be created on the UI thread.

3. Access Mostly Uused Products by 50000+ Subscribers

4. It uses three generic types.


Question : What does the following line of code do?
Toast toast = Toast.makeText(this,"Android ATC", Toast.LENGTH_LONG);
toast.setGravity(Gravity.TOP|Gravity.RIGH, 0, 0);

 : What does the following line of code do?
1. The toast will have it UI components place on the top-right corner.

2. The toast will appear on the top-right corner.

3. Access Mostly Uused Products by 50000+ Subscribers

4. The toast will appear at the center of the screen at position (0,0), but aligned to the top-right corner.