Which Android permission you should add to allow your application to read the device’s address book?

Which Android permission you should add to allow your application to read the device’s address book?A . READ_ADDRESS_DATAB . READ_PHONE_STATEC . READ_PHONE_CONTACTSD . READ_CONTACTS View Answer Answer: D Explanation: To do any type of search of the Contacts Provider, your app must have READ_CONTACTS permission. To request this, add this <uses-permission> element to your...

Continue reading

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

Which of the following methods is called first in an Activity when another activity gets into the foreground?A . onStop()B . onPause()C . onDestroy()D . onExit() View Answer Answer: B Explanation: onPause() is where you deal with the user leaving your activity. References: http://developer.android.com/reference/android/app/Activity.html...

Continue reading

Which of the following information cannot not be included in the Manifest file?

Which of the following information cannot not be included in the Manifest file?A . The activities contained in the applicationB . The permissions required by the applicationC . The application’s minimum SDK version required.D . The handset model compatible with your application. View Answer Answer: D Explanation: Among other things, the manifest does the...

Continue reading

How to enable JavaScript in WebView?

How to enable JavaScript in WebView?A . myWebView. setJavaScriptEnabled(true);B . myWebView.getJavaScriptSettings.setEnabled(true)C . myWebView.getSettings().setJavaScriptEnabled(true);D . Java script is always enabled in WebView View Answer Answer: C Explanation: JavaScript is disabled in a WebView by default. You can enable it through the WebSettings attached to your WebView. You can retrieve WebSettings with getSettings(), then enable JavaScript...

Continue reading