What is a correct part of an Implicit Intent for sharing data implementation?
A. val sendIntent = Intent(this, UploadService::class.java).apply { putExtra(Intent.EXTRA_TEXT, textMessage) ...
B. val sendIntent = Intent().apply { type = Intent.ACTION_SEND; ...
C. val sendIntent = Intent(this, UploadService::class.java).apply { data = Uri.parse(fileUrl) ...
D. val sendIntent = Intent().apply { action = Intent.ACTION_SEND ...
If you want to access a specific UI component in an app, use the UiSelector class. This class represents a query for specific elements in the currently displayed UI. What is correct about it? (Choose two.)
A. If more than one matching element is found, the first matching element in the layout hierarchy is returned as the target UiObject.
B. If no matching UI element is found, an IOException is thrown.
C. If more than one matching element is found, the last matching element in the layout hierarchy is returned as the target UiObject.
D. If no matching UI element is found, a UiAutomatorObjectNotFoundException is thrown.
What is illustrated in the picture?
A. Logcat window with filter settings
B. Debugging native code using LLDB
C. The Variables and Watches panes in the Debugger window
D. The Breakpoints window lists all the current breakpoints and includes behavior settings for each
E. Adding a watchpoint to a variable in memory
To run a debuggable build variant you must use a build variant that includes
A. minifyEnabled false in the build configuration
B. debuggable true or debuggable false in the build configuration
C. debuggable true in the build configuration
By executing an allowMainThreadQueries() method to the room database builder RoomDatabase.Builder, we can:
A. set the database factory
B. handle database first time creation
C. handle database opening
D. disable the main thread query check for Room
A class that you create for managing multiple data sources. In addition to a Room database, this class could manage remote data sources such as a web server. It is about:
A. Activity/Fragment
B. ViewModel
C. Repository
D. Room database
The following code snippet shows an example of an Espresso test:
A. @Rule
public void greeterSaysHello() {
onView(withId(R.id.name_field)).do(typeText("Steve"));
onView(withId(R.id.greet_button)).do(click());
onView(withText("Hello Steve!")).check(matches(isDisplayed()));
}
B. @Test
public void greeterSaysHello() {
onView(withId(R.id.name_field)).perform(typeText("Steve"));
onView(withId(R.id.greet_button)).perform(click());
onView(withText("Hello Steve!")).check(matches(isDisplayed()));
}
C. @Test
public void greeterSaysHello() {
onView(withId(R.id.name_field)).do(typeText("Steve"));
onView(withId(R.id.greet_button)).do(click());
onView(withText("Hello Steve!")).compare(matches(isDisplayed()));
}
If constant LENGTH_INDEFINITE is used as a parameter for the setDuration method in Snackbar, what will happen?
A. The Snackbar will be displayed for a short period of time.
B. The Snackbar will be displayed for a long period of time.
C. The Snackbar will be displayed for a very long period of time.
D. The Snackbar will be displayed from the time that is shown until either it is dismissed, or another Snackbar is shown.
E. The constant LENGTH_INDEFINITE is impossible parameter for the setDuration method in Snackbar
What is the placeholder tag
A. To mark text that should not be translated.
B. To raise a translation priority to a higher level
C. To raise a quantity of translations for the string
D. To pick up and move sting translation from a different resource file
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:
A. View#setContentDescription(int contentDescriptionResId)
B. View#setContentLabel(int contentDescriptionResId)
C. View#setContentDescription(CharSequence contentDescription)
D. View#setContentLabel(CharSequence contentDescription)