AAD : Associate Android Developer Associate Android Developer : Part 06

  1. Choose the most correct statement.

    • Android is a closed source, Linux-based software stack created for a wide array of devices and form factors.
    • Android is a closed source, Windows-based software stack created for a wide array of devices and form factors.
    • Android is an open source, Linux-based software stack created for a wide array of devices and form factors.
    • Android is an open source software stack created for a highly limited array of devices and form factors.

    Explanation:

    Reference:
    https://developer.android.com/guide/platform

  2. DRAG DROP

    Move the major components of the Android platform to correct places in diagram.

    AAD Associate Android Developer Associate Android Developer Part 06 Q02 016 Question
    AAD Associate Android Developer Associate Android Developer Part 06 Q02 016 Question
    AAD Associate Android Developer Associate Android Developer Part 06 Q02 016 Answer
    AAD Associate Android Developer Associate Android Developer Part 06 Q02 016 Answer

    Explanation:
    Reference:
    https://developer.android.com/guide/platform
  3. Select correct statements about Hardware Abstraction Layer (HAL). (Choose two.)

    • The HAL provides standard interfaces that expose device hardware capabilities to the higher-level Java API framework.
    • The HAL function both as apps for users and to provide key capabilities that developers can access from their own app. For example, if your app would like to deliver an SMS message, you don’t need to build that functionality yourself – you can instead invoke whichever SMS app is already installed to deliver a message to the recipient you specify
    • The HAL consists of multiple library modules, each of which implements an interface for a specific type of hardware component, such as the camera or bluetooth module. When a framework API makes a call to access device hardware, the Android system loads the library module for that hardware component.
    • Using a HAL, not using a Linux kernel, allows Android to take advantage of key security features and allows device manufacturers to develop hardware drivers for a well-known kernel.
    Explanation:
    The system apps function both as apps for users and to provide key capabilities that developers can access from their own app. For example, if your app would like to deliver an SMS message, you don’t need to build that functionality yourself — you can instead invoke whichever SMS app is already installed to deliver a message to the recipient you specify
    Using a Linux kernel allows Android to take advantage of key security features and allows device manufacturers to develop hardware drivers for a well-known kernel.
    Reference:
    https://developer.android.com/guide/platform
  4. 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:

    • KEYCODE_DPAD_CENTER
    • KEYCODE_BUTTON_START
    • KEYCODE_CALL
    • KEYCODE_BUTTON_SELECT
    Explanation:
    Reference:
    https://developer.android.com/guide/topics/ui/accessibility/custom-views
  5. Custom views and directional controller clicks. In general, you should send an AccessibilityEvent whenever the content of your custom view changes. For example, if a text value was changed in your custom view, you should emit an event of this type:

    • TYPE_WINDOWS_CHANGED
    • TYPE_VIEW_CONTEXT_CLICKED
    • TYPE_WINDOWS_CHANGED
    • TYPE_VIEW_TEXT_CHANGED
    Explanation:
    Reference:
    https://developer.android.com/guide/topics/ui/accessibility/custom-views
  6. DRAG DROP

    In a common Paging Library architecture scheme, move instances to the correct positions.

    AAD Associate Android Developer Associate Android Developer Part 06 Q06 017 Question
    AAD Associate Android Developer Associate Android Developer Part 06 Q06 017 Question
    AAD Associate Android Developer Associate Android Developer Part 06 Q06 017 Answer
    AAD Associate Android Developer Associate Android Developer Part 06 Q06 017 Answer

    Explanation:
    Reference:
    https://developer.android.com/topic/libraries/architecture/paging/ui
  7. Select a correct statement about PagedList.

    • PagedList is content-mutable. This means that new content can be loaded into an instance of PagedList and the loaded items themselves can change once loaded.
    • PagedList is content-immutable. This means that, although new content can be loaded into an instance of PagedList, the loaded items themselves cannot change once loaded.
    • PagedList is content-accidental. This means that new content can be loaded into an instance of PagedList and the loaded items themselves can be changed to accidental values randomly.
    Explanation:
    Reference:
    https://developer.android.com/topic/libraries/architecture/paging/ui
  8. If content in a PagedList updates, the PagedListAdapter object receives:

    • only one item from PagedList that contains the updated information.
    • one or more items from PagedList that contains the updated information.
    • a completely new PagedList that contains the updated information.
    Explanation:
    Reference:
    https://developer.android.com/topic/libraries/architecture/paging/ui
  9. Relative positioning is one of the basic building blocks of creating layouts in ConstraintLayout. Constraints allow you to position a given widget relative to another one. What constraints do not exist?

    • layout_constraintBottom_toBottomOf
    • layout_constraintBaseline_toBaselineOf
    • layout_constraintBaseline_toStartOf
    • layout_constraintStart_toEndOf
    Explanation:
    Reference:
    https://developer.android.com/reference/androidx/constraintlayout/widget/ConstraintLayout
  10. Which statement is most true about layout_constraintLeft_toRightOf and layout_constraintStart_toEndOf constraints ?

    • layout_constraintLeft_toRightOf is equal to layout_constraintStart_toEndOf in any case
    • layout_constraintLeft_toRightOf is equal to layout_constraintStart_toEndOf in case if user choose a language that uses right-to-left (RTL) scripts, such as Arabic or Hebrew, for their UI locale
    • layout_constraintLeft_toRightOf is equal to layout_constraintStart_toEndOf in case if user choose a language that uses left-to-right (LTR) scripts, such as English or French, for their UI locale
    • layout_constraintLeft_toRightOf works with horizontal axes and layout_constraintStart_toEndOf works with vertical axes
    Explanation:
    Reference:
    https://developer.android.com/training/basics/supporting-devices/languages
  11. In application theme style, flag windowNoTitle (<item name=”windowNoTitle”>) indicates:

    • whether this window should have an Action Bar in place of the usual title bar.
    • whether there should be no title on this window.
    • that this window should not be displayed at all.
    • whether this is a floating window.
    • whether this Window is responsible for drawing the background for the system bars.
    Explanation:
    Reference:
    https://developer.android.com/guide/topics/ui/look-and-feel/themes
    https://developer.android.com/reference/android/R.styleable.html
  12. “Set the activity content to an explicit view. This view is placed directly into the activity’s view hierarchy. It can itself be a complex view hierarchy.” This can be done by calling method:

    • findViewById
    • setContentView
    • setActionBar
    • setContentTransitionManager
    • setTheme
    Explanation:
    Reference:
    https://developer.android.com/training/basics/firstapp/building-ui
    https://developer.android.com/reference/android/app/Activity
  13. A content label sometimes depends on information only available at runtime, or the meaning of a View might change over time. For example, a Play button might change to a Pause button during music playback. In these cases, to update the content label at the appropriate time, we can use:

    • View#setContentDescription(int contentDescriptionResId)
    • View#setContentLabel(int contentDescriptionResId)
    • View#setContentDescription(CharSequence contentDescription)
    • View#setContentLabel(CharSequence contentDescription)
    Explanation:
    Reference:
    https://support.google.com/accessibility/android/answer/7158690?hl=en
  14. When using an ImageView, ImageButton, CheckBox, or other View that conveys information graphically. What attribute to use to provide a content label for that View?

    • android:contentDescription
    • android:hint
    • android:labelFor
    Explanation:
    Reference:
    https://support.google.com/accessibility/android/answer/7158690?hl=en
  15. When using an EditTexts or editable TextViews, or other editable View. What attribute to use to provide a content label for that View?

    • android:contentDescription
    • android:hint
    • android:labelFor
    Explanation:
    Reference:
    https://support.google.com/accessibility/android/answer/7158690?hl=en
  16. Content labels. What attribute to use to indicate that a View should act as a content label for another View?

    • android:contentDescription
    • android:hint
    • android:labelFor
    Explanation:
    Reference:
    https://support.google.com/accessibility/android/answer/7158690?hl=en
  17. In application theme style, flag windowActionBar (<item name=”windowActionBar”>) indicates:

    • whether the given application component is available to other applications.
    • whether action modes should overlay window content when there is not reserved space for their UI (such as an Action Bar).
    • whether this window’s Action Bar should overlay application content.
    • whether this window should have an Action Bar in place of the usual title bar.
    Explanation:
    Reference:
    https://developer.android.com/guide/topics/ui/look-and-feel/themes
    https://developer.android.com/reference/android/R.styleable.html
  18. In application theme style, flag windowNoTitle (<item name=”windowNoTitle”>) indicates:

    • whether this window should have an Action Bar in place of the usual title bar.
    • whether there should be no title on this window.
    • that this window should not be displayed at all.
    • whether this is a floating window.
    • whether this Window is responsible for drawing the background for the system bars.
    Explanation:
    Reference:
    https://developer.android.com/guide/topics/ui/look-and-feel/themes
    https://developer.android.com/reference/android/R.styleable.html
  19. In application theme style, flag windowDrawsSystemBarBackgrounds (<item name=”android:windowDrawsSystemBarBackgrounds”>) indicates:

    • whether this window should have an Action Bar in place of the usual title bar.
    • whether there should be no title on this window.
    • that this window should not be displayed at all.
    • whether this is a floating window.
    • whether this Window is responsible for drawing the background for the system bars.
    Explanation:
    Reference:
    https://developer.android.com/guide/topics/ui/look-and-feel/themes
    https://developer.android.com/reference/android/R.styleable.html
  20. In application theme style, value statusBarColor (<item name=”android:statusBarColor”>) means:

    • Color of text (usually same as colorForeground).
    • Shows a thin line of the specified color between the navigation bar and the app content.
      For this to take effect, the window must be drawing the system bar backgrounds with R.attr.windowDrawsSystemBarBackgrounds and the navigation bar must not have been requested to be translucent with R.attr.windowTranslucentNavigation. Corresponds to Window.setNavigationBarDividerColor(int).
    • The color for the status bar. If the color is not opaque, consider setting View.SYSTEM_UI_FLAG_LAYOUT_STABLE and View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN. For this to take effect, the window must be drawing the system bar backgrounds with R.attr.windowDrawsSystemBarBackgrounds and the status bar must not have been requested to be translucent with R.attr.windowTranslucentStatus. Corresponds to Window.setStatusBarColor(int).
    • The color for the navigation bar. If the color is not opaque, consider setting View.SYSTEM_UI_FLAG_LAYOUT_STABLE and View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION. For this to take effect, the window must be drawing the system bar backgrounds with R.attr.windowDrawsSystemBarBackgrounds and the navigation bar must not have been requested to be translucent with R.attr.windowTranslucentNavigation. Corresponds to Window.setNavigationBarColor(int).
    Explanation:
    Reference:
    https://developer.android.com/guide/topics/ui/look-and-feel/themes
    https://developer.android.com/reference/android/R.styleable.html
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments