Android AND-401 Android Application Development Online Training
Android AND-401 Online Training
The questions for AND-401 were last updated at May 09,2025.
- Exam Code: AND-401
- Exam Name: Android Application Development
- Certification Provider: Android
- Latest update: May 09,2025
Which of the following lines of code starts activity Activity2 from a current activity Activity1?
- A . Intent intent = new Intent(this,new Activity2()); startActivity(intent);
- B . Intent intent = new Intent(new Activity2()); startActivity(intent);
- C . Intent intent = new Intent (Activity1.class,Activity2.class); startActivity(intent);
- D . Intent intent = new Intent(this,Activity2.class); startActivity(intent);
Which of the following methods is called first in an Activity when another activity gets into the foreground?
- A . onStop()
- B . onPause()
- C . onDestroy()
- D . onExit()
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 = landscape
- B . screenOrientation=”landscape”
- C . android:ScreenOrientation=“landscape”
- D . android:screenOrientation=”landscape”
What is not true about the AndroidManifest.xml file?
- A . It declares the views used within the application
- B . It declares user permissions the application requires
- C . It declares application components
- D . It declares hardware and software features used within the application
If your application is throwing exception android.content.ActivityNotFoundException, which of the following could resolve the problem?
- A . Create a new sub-class of the View class.
- B . Create a new broadcast receiver
- C . Create the activity layout
- D . Add the activity to the AndroidManifest.xml
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 any activity in the application that has a WebView in its layout.
- D . When it is executed, the system starts an intent resolution process to start the right Activity.
Which of the following is not true about <activity> tag in AndroidManifest file?
- A . Declares an activity that implements part of the application’s visual user interface
- B . Contained in <application> tag.
- C . Declares a single hardware or software feature that is used by the application.
- D . Has an attribute that specifies the name of the Activity sub-class that implements the activity.
Which of these is NOT recommended in the Android Developer’s Guide as a method of creating an individual View?
- A . Create by extending the android.view.View class.
- B . Create by extending already existing View classes such as Button or TextView.
- C . Create by copying the source of an already existing View class such as Button or TextView
- D . Create by combining multiple Views.
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.
- B . You can create and startup AVD, and on startup you can delete user data up to that point.
- C . The "android" command can be used if "<SDK install folder>/tools" is added to the command path.
- D . The development tools that can be downloaded from Android SDK and AVD Manager are SDK Android platform, NDK-platform, emulator images, and USB drivers for handsets.
Which of these is the correct explanation regarding the following methods?
(1)android.content.Context.sendBroadcast
(2)android.content.Context.startActivity
- A . Both methods are defined by overloading.
- B . Both methods throw an exception.
- C . Both methods are asynchronous.
- D . Both methods are able to broadcast an Intent.