Which method should you use to start a sub-activity?
Which method should you use to start a sub-activity?A . startActivity(Intent intent)B . startActivityForResult(Intent intent , int requestCode)C . startService(Intent intent)D . startSubActivity(Intent intent)View AnswerAnswer: B Explanation: startActivityForResult launches an activity for which you would like a result when it finished. References: http://developer.android.com/reference/android/app/Activity.html
Which of the following is true about object arrayAdapter declared in the code below?
Which of the following is true about object arrayAdapter declared in the code below? String[] items = {“Item 1”,”Item 2”,”Item 3”}; ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, items); listView.setAdapter(arrayAdapter);A . It creates a TextView for each String in array items.B . It creates Buttons for each String in array items.C...
Javascript is enabled by default in a WebView
Javascript is enabled by default in a WebViewA . TrueB . FalseView AnswerAnswer: B Explanation: If the web page you plan to load in your WebView use JavaScript, you must enable JavaScript for your WebView. References: http://developer.android.com/guide/webapps/webview.html
Which of the following is NOT true about class DefaultHttpClient?
Which of the following is NOT true about class DefaultHttpClient?A . It supports HTTPC . It supports streaming uploads and downloads.D . It is only supported on Android versions 2.2 and older.E . It is Andriod’s default implementation of an HTTP client.View AnswerAnswer: C Explanation: Android 6.0 release removes support...
Which of the following tools creates certificates for signing Android applications?
Which of the following tools creates certificates for signing Android applications?A . adbB . logcatC . keytoolD . certgenView AnswerAnswer: C Explanation: You do not need Android Studio to sign your app. You can sign your app from the command line using standard tools from the Android SDK and the...
Which of the following classes is used by Intent to transfer data between different android components?
Which of the following classes is used by Intent to transfer data between different android components?A . ExtrasB . BundleC . ParcelablesD . PendingIntentView AnswerAnswer: B Explanation: Bundle is generally used for passing data between various activities of android. It depends on you what type of values you want to...
Which of the following is correct about file access in the Android system?
Which of the following is correct about file access in the Android system?A . Generally, files are handled as dedicated resources per each application.B . Files created by an application can be directly accessed by any application.C . The content of file created by application cannot be accessed by any...
Which of these is the incorrect method for an Application to save local data?
Which of these is the incorrect method for an Application to save local data?A . Extend PreferencesActivity and save in an XML file.B . Save as a file in the local file system.C . Save in the database using SQLite.D . Save in the hash table file using the Dictionary...
Which of the following tools dumps system log messages including stack traces when the device or emulator throws an error?
Which of the following tools dumps system log messages including stack traces when the device or emulator throws an error?A . DDMSB . LogcatC . ConsoleD . ADBView AnswerAnswer: B Explanation: References: Android ATC Self Study Guide http://www.androidatc.com/pages-19/Self-Study
Which method is used to close an activity?
Which method is used to close an activity?A . Destroy()B . Finish()C . Stop()D . Close()View AnswerAnswer: B Explanation: References: Android ATC Self Study Guide http://www.androidatc.com/pages-19/Self-Study