Which of the following is incorrect about ProgressDialog?
Which of the following is incorrect about ProgressDialog?A . ProgressDialog inherits from the AlertDialog class.B . ProgressDialog can be set as 2 types of style: STYLE_HORIZONTAL and STYLE_SPINNED . ProgressDialog is able to apply a custom XML-defined layout by using the setContentView(...) method.E . ProgressDialog can be freely configured to...
Which of the following is a correct Android Manifest statement?
Which of the following is a correct Android Manifest statement?A . <uses-permission android:name =”android.Internet”/>B . <uses-permission android:name =”android.Internet”></uses-permission>C . <uses-permission android:name =”android.permission.Internet”>D . <uses-permission android:name =”android. permission .Internet”/>View AnswerAnswer: D Explanation: References: Android ATC Self Study Guide http://www.androidatc.com/pages-19/Self-Study
When including a text file in your application to read from as a resource, what is the recommended location of such file?
When including a text file in your application to read from as a resource, what is the recommended location of such file?A . res/animB . res/filesC . res/rawD . res/valuesView AnswerAnswer: C Explanation: You should place each type of resource in a specific subdirectory of your project's res/ directory. The...
Which file specifies the minimum required Android SDK version your application supports?
Which file specifies the minimum required Android SDK version your application supports?A . main.xmlC . javaD . strings.xmlE . AndroidManifest.xmlView AnswerAnswer: D Explanation: References: Android ATC Self Study Guide http://www.androidatc.com/pages-19/Self-Study
Which of the following attributes of the activity tag in the manifest file is used to set an activity screen to landscape orientation?
Which of the following attributes of the activity tag in the manifest file is used to set an activity screen to landscape orientation?A . screenorientation = landscapeB . screenOrientation=”landscape”C . android:ScreenOrientation=“landscape”D . android:screenOrientation=”landscape”View AnswerAnswer: D Explanation: Adding this to your manifest should force your app to landscape: <!-- Force Landscape-->...
Which configuration file holds the permission to use the internet?
Which configuration file holds the permission to use the internet?A . Layout fileB . Property fileC . Java source fileD . Manifest fileView AnswerAnswer: D Explanation: References: Android ATC Self Study Guide http://www.androidatc.com/pages-19/Self-Study
What does the following code achieve?
What does the following code achieve? Intent intent = new Intent(FirstActivity.this, SecondActivity.class); startActivityForResult(intent);A . Starts a browser activityB . Starts a sub-activityC . Starts an activity serviceD . Sends results to another activity.View AnswerAnswer: B Explanation: startActivityForResult launches an activity for which you would like a result when it finished....
Which of the following is correct about the code above?
Consider the following code: Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW); intent.setData(android.net.Uri.parse("http://www.androidatc.com")); startActivity(intent); Which of the following is correct about the code above?A . It sends a result to a new Activity in a Bundle.B . It will not compile without adding the INTERNET permission the Manifest file.C . It starts...
<?xml version="1.0" encoding="utf-8"?
Which UI does the following code builds? <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android=http:// schemas.android.com/apk/res/android android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" > <TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Name:" /> <EditText android:id="@+id/editText1" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" android:ems="10" /> </LinearLayout> <Button android:id="@+id/button1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Post" /> </LinearLayout>A . An edit text to the left of...
Which of the following statements about DDMS is incorrect?
Which of the following statements about DDMS is incorrect?A . You can display a list of currently running threads and select one to check its stack trace.B . You can use it to acquire screenshots of a terminal.C . You can forcibly execute garbage collection and check the present heap...