Which of the following you cannot achieve by creating your own View sub-classes?
Answer(s): A
Incorrect:B: A view can be comprised of multiple other views (otherwise known as a composite view). Such views are subclassed from the Android ViewGroup class (android.view.ViewGroup) which is itself a subclass of View.
http://developer.android.com/training/custom-views/create-view.html
Which of the following is NOT true about method getWindow() of class Dialog?
Answer(s): C
Incorrect:A: getWindow() retrieves the current window for the activity.B: getWindow() can be used to directly access parts of the Window API that are not available through Activity/ Screen.D: getWindow() returns the current window, or null if the activity is not visual.
http://developer.android.com/reference/android/app/Dialog.html#getWindow()
Which of the following best defines an Android fragment?
A Fragment is a piece of an activity which enable more modular activity design.
http://www.tutorialspoint.com/android/android_fragments.htm
What is the location of APK generated by the build system of Android Studio?
If you are using Gradle, then it would be in the build/apk folder.
http://stackoverflow.com/questions/16620366/apk-location-in-new-android-studio
Which of the following AsyncTask methods is NOT executed on the UI thread?
When an asynchronous task is executed, the task goes through 4 steps:1. onPreExecute(), invoked on the UI thread before the task is executed. This step is normally used to setup the task, for instance by showing a progress bar in the user interface.2. doInBackground(Params...), invoked on the background thread immediately after onPreExecute() finishes executing. 3. onProgressUpdate(Progress...), invoked on the UI thread after a call to publishProgress(Progress...).4. onPostExecute(Result), invoked on the UI thread after the background computation finishes. Reference: http://developer.android.com/reference/android/os/AsyncTask.html
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.