Consider the following code snippet:
String[] result_columns = new String[]{KEY_ID, COL1, COL2};
Cursor allRows = myDatabase.query(true, DATABASE_TABLE, result_columns,
null,null,null,null,null,null);
Which of the following prints out the values of COL1 column correctly if the result is not empty?
A. if (cursor.moveToFirst()) {do {System.out.println(cursor.getString(1));}while (cursor.moveToNext()); }Consider the following AndroidManifest.xml file.
package="com.androidatc " android:versionCode="1" android:versionName="1.0" > android:minSdkVersion="12" android:targetSdkVersion="17" /> android:name="MyApp " android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > android:name="com.androidatc.MainActivity" android:label="@string/app_name" android:screenOrientation="portrait" >
Which of the following is correct?
A. The application will run as intended.Which of these is the incorrect explanation of the Android SDK and AVD Manager?
A. They are provided from version 1.6 of the SDK. Up to Version 1.5, there was an AVD Manager but it lacked SDK management functions.Which of the following classes is used by Intent to transfer data between different android components?
A. ExtrasYou can create a custom view by extending class Activity.
A. TrueConsider the following AndroidManifest.xml file:
package="mycube.test" android:versionCode="1" android:versionName="1.0" > android:minSdkVersion="8" android:targetSdkVersion="17" /> android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@android:style/Theme.Light.NoTitleBar" > android:screenOrientation="portrait" android:label="@string/app_name" >
What is the syntax error of this file?
A. The INTERNET permission must be removed.What does the following code achieve?
Intent intent = new Intent(FirstActivity.this, SecondActivity.class); startActivityForResult(intent);
A. Starts a browser activityIn which Activity life-cycle method you should do all of your normal static set up such as: creating views and bind data to lists?
A. onResume()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.What is the parent class of all Activity widgets?
A. ViewGroupNowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Android exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your AND-401 exam preparations and Android certification application, do not hesitate to visit our Vcedump.com to find your solutions here.