Question : Which of the following is a correct Android Manifest statement?
1.
2.
3.
4.
Correct Answer : 4 Explanation: Requests a permission that the application must be granted in order for it to operate correctly. Permissions are granted by the user when the application is installed (on devices running Android 5.1 and lower) or while the app is running (on devices running Android 6.0 and higher). For more information on permissions, see the Permissions section in the introduction and the separate System Permissions API guide. A list of permissions defined by the base platform can be found at android.Manifest.permission.
ATTRIBUTES: android:name The name of the permission. It can be a permission defined by the application with the element, a permission defined by another application, or one of the standard system permissions (such as "android.permission.CAMERA" or "android.permission.READ_CONTACTS"). As these examples show, a permission name typically includes the package name as a prefix. SYNTAX: android:maxSdkVersion="integer" />
Question : Which of the following is true about attribute android:windowSoftInputMode of the tag in file AndroidManifest.xml?
1. It specifies whether the window is in full screen or not
2. It adjusts how the main window of the activity interacts with keyboard
3. It adjusts how the window should be launched
4. It adjusts the window orientation
Correct Answer : 2 Explanation: android:windowSoftInputMode How the main window of the activity interacts with the window containing the on-screen soft keyboard. The setting for this attribute affects two things: The state of the soft keyboard - whether it is hidden or visible - when the activity becomes the focus of user attention. The adjustment made to the activity's main window - whether it is resized smaller to make room for the soft keyboard or whether its contents pan to make the current focus visible when part of the window is covered by the soft keyboard. The setting must be one of the values listed in the following table, or a combination of one "state..." value plus one "adjust..." value. Setting multiple values in either group - multiple "state..." values, for example - has undefined results. Individual values are separated by a vertical bar (|). For example:
Question : Which of the following tools dumps system log messages including stack traces when the device or emulator throws an error?
1. DDMS
2. Logcat
3. Console
4. ADB
Correct Answer : 2 Explanation: The Android logging system provides a mechanism for collecting and viewing system debug output. Logs from various applications and portions of the system are collected in a series of circular buffers, which then can be viewed and filtered by the logcat command. You can use logcat from an ADB shell to view the log messages.
4. Since Android uses libraries licensed in various ways such as GPL, BSD, and LGPL, applications developed under Android are subject to the severest license, GPL