Which of the following is not true about using a WebView in your application?
Answer(s): B
In order for your Activity to access the Internet and load web pages in a WebView, you must add the INTERNET permissions to your Android Manifest file:<uses-permission android:name="android.permission.INTERNET" />
http://developer.android.com/reference/android/webkit/WebView.html
Which of the following is NOT true about class AsyncTask?
Answer(s): C
AsyncTask must be subclassed to be used. The subclass will override at least one method (doInBackground (Params...)), and most often will override a second one (onPostExecute(Result).)Incorrect:A: AsyncTask must be subclassed to be used. B: AsyncTask enables proper and easy use of the UI thread. This class allows to perform background operations and publish results on the UI thread without having to manipulate threads and/or handlers. D: The three types used by an asynchronous task are the following:Params, the type of the parameters sent to the task upon execution.Progress, the type of the progress units published during the background computation. Result, the type of the result of the background computation.
http://developer.android.com/reference/android/os/AsyncTask.html
What does the following line of code do?Toast toast = Toast.makeText(this,"Android ATC", Toast.LENGTH_LONG); toast.setGravity(Gravity.TOP|Gravity.RIGHT, 0, 0);toast.show( );
http://tutorials.jenkov.com/android/toast.html
Which of the following is NOT true about a content provider?
You can access data in a content provider, even if you don't have the proper access permissions, by sending an intent to an application that does have the permissions and receiving back a result intent containing "URI" permissions. These are permissions for a specific content URI that last until the activity that receives them is finished.Incorrect:A: A content provider manages access to a central repository of data.
http://developer.android.com/guide/topics/providers/content-provider-basics.html
Consider the following code snippet to query SQLite database: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?
Answer(s): A
Post your Comments and Discuss Android AND-401 exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the AND-401 content, but please register or login to continue.