Google Associate Android Developer Practice Test - Questions Answers, Page 10
List of questions
Related questions
If you want get a debuggable APK that people can install without adb, in Android Studio you can:
To build a debug APK, you can open a command line and navigate to the root of your project directory. To initiate a debug build, invoke the assembleDebug task:
gradlew assembleDebug
This creates an APK named [module_name]-debug.apk in
[project_name]/[module_name]/build/outputs/apk/
Select correct statements about generated file. (Choose all that apply.)
Building your app from the command line, if you have a "demo" product flavor, then you can build the debug version with the command:
If no any folder like res/anim-<qualifiers>, res/drawable-<qualifiers>, res/layout-<qualifiers>, res/raw-<qualifiers>, res/xml-<qualifiers> exist in the project. Which folders are required in the project anyway? (Choose two.)
Assume that an app includes a default set of graphics and two other sets of graphics, each optimized for a different device setup:
res/drawable/
Contains default graphics.
res/drawable-small-land-stylus/
Contains graphics optimized for use with a device that expects input from a stylus and has a QVGA low-density screen in landscape orientation.
res/drawable-ja/
Contains graphics optimized for use with Japanese.
What happens if the app runs on a device that is configured to use Japanese and, at the same time, the device happens to be one that expects input from a stylus and has a QVGA low-density screen in landscape orientation?
Assume that you have the following situation:
The app code calls for R.string.text_a
Three relevant resource files are available:
- res/values/strings.xml, which includes text_a in the app's default language, in this case English.
- res/values-mcc404/strings.xml, which includes text_a in the app's default language, in this case English.
- res/values-hi/strings.xml, which includes text_a in Hindi.
The app is running on a device that has the following configuration:
- The SIM card is connected to a mobile network in India (MCC 404).
- The language is set to Hindi (hi).
Which is the correct statement below?
What is the placeholder tag <xliff:g> used for?
Choose the most correct statement.
Select correct statements about Hardware Abstraction Layer (HAL). (Choose two.)
Custom views and directional controller clicks. On most devices, clicking a view using a directional controller sends (to the view currently in focus) a KeyEvent with:
Question