What does this code do?

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);A . Starts a sub-activityB . Starts a serviceC . Sends results to another activity.D . Starts an activity using an implicit intent.View AnswerAnswer: D Explanation: References: Android ATC Self Study Guide http://www.androidatc.com/pages-19/Self-Study

September 16, 2019 No Comments READ MORE +

You can create a custom view by extending class:

You can create a custom view by extending class:A . android.widget.ViewB . android.widget.LinearLayoutC . android.view.ViewD . android.content.ContextView AnswerAnswer: C Explanation: References: http://developer.android.com/reference/android/view/View.html

September 15, 2019 No Comments READ MORE +

Which of the following WebView methods allows you to manually load custom HTML markup?

Which of the following WebView methods allows you to manually load custom HTML markup?A . loadDataB . loadHTMLC . loadCustomDataD . loadCustomHTMLView AnswerAnswer: A Explanation: To load the desired web page from an HTML string: String summary = "<html><body>You scored <b>192</b> points.</body></html>"; webview.loadData(summary, "text/html", null); References: http://developer.android.com/reference/android/webkit/WebView.html

September 15, 2019 No Comments READ MORE +

What Activity method you use to retrieve a reference to an Android view by using the id attribute of a resource XML?

What Activity method you use to retrieve a reference to an Android view by using the id attribute of a resource XML?A . findViewByReference(int id);B . findViewById(int id)C . retrieveResourceById(int id)D . findViewById(String id)View AnswerAnswer: B Explanation: The findViewById(int id) method looks for a child view with the given id....

September 14, 2019 No Comments READ MORE +

Which of the following statements is correct about SQLite?

Which of the following statements is correct about SQLite?A . It is an object database.B . It is client-server format.C . It is possible to create and access a database by using SQLOpenHelper.D . It can be accessed by other applications through ContentProvider.View AnswerAnswer: D Explanation: Content providers are one...

September 14, 2019 No Comments READ MORE +

Which of the following is not true about <activity> tag in AndroidManifest file?

Which of the following is not true about <activity> tag in AndroidManifest file?A . Declares an activity that implements part of the application's visual user interfaceB . Contained in <application> tag.C . Declares a single hardware or software feature that is used by the application.D . Has an attribute that...

September 14, 2019 No Comments READ MORE +

An AsyncTask can be cancelled anytime from any thread.

An AsyncTask can be cancelled anytime from any thread.A . TrueB . FalseView AnswerAnswer: A Explanation: A task can be cancelled at any time by invoking cancel(boolean). References: http://developer.android.com/reference/android/os/AsyncTask.html

September 14, 2019 No Comments READ MORE +

What does the src folder contain?

What does the src folder contain?A . Image and icon filesB . XML resource filesC . The application manifest fileD . Java source code filesView AnswerAnswer: D Explanation: References: Android ATC Self Study Guide http://www.androidatc.com/pages-19/Self-Study

September 13, 2019 No Comments READ MORE +

How is the MRU for a multilink bundle determined?

How is the MRU for a multilink bundle determined?A . It is manually configured on all physical interfaces of a multilink bundleB . It is negotiated by NCPC . It is manually configured on the multilink bundleD . It is negotiated by IPCPE . It is negotiated by LCPView AnswerAnswer:...

September 13, 2019 No Comments READ MORE +

Which of the following classes should be extended to create a custom view?

Which of the following classes should be extended to create a custom view?A . ViewB . ViewGroupC . ContextD . ActivityView AnswerAnswer: A Explanation: All of the view classes defined in the Android framework extend View. Your custom view can also extend View directly, or you can save time by...

September 10, 2019 No Comments READ MORE +