Filter logcat messages. If in the filter menu, a filter option “Edit Filter Configuration”? means:

Filter logcat messages. If in the filter menu, a filter option “Edit Filter Configuration”? means:A . Display the messages produced by the app code only (the default). Logcat filters the log messages using the PID of the active app.B . Apply no filters. Logcat displays all log messages from the...

November 25, 2023 No Comments READ MORE +

What happens when you create a DAO method and annotate it with @Insert?

What happens when you create a DAO method and annotate it with @Insert? Example: @Dao interface MyDao { @Insert(onConflict = OnConflictStrategy.REPLACE) fun insertUsers(vararg users: User) }A . Room generates an implementation that inserts all parameters into the database in a single transaction.B . Room modifies a set of entities, given...

November 25, 2023 No Comments READ MORE +

While live updates are enabled, what happens with the table in the inspector window?

If you want the Database Inspector to automatically update the data it presents as you interact with your running app, check the Live updates checkbox at the top of the inspector window. While live updates are enabled, what happens with the table in the inspector window?A . It is still...

November 24, 2023 No Comments READ MORE +

Filter logcat messages. If in the filter menu, a filter option “Show only selected application”? means:

Filter logcat messages. If in the filter menu, a filter option “Show only selected application”? means:A . Display the messages produced by the app code only (the default). Logcat filters the log messages using the PID of the active app.B . Apply no filters. Logcat displays all log messages from...

November 24, 2023 No Comments READ MORE +

To automate UI tests with Android Studio, you implement your test code in a separate Android test folder.

To automate UI tests with Android Studio, you implement your test code in a separate Android test folder. Folder could be named:A . app/androidTest/javaB . app/src/androidTest/javaC . app/java/androidTestView AnswerAnswer: B

November 22, 2023 No Comments READ MORE +

The easiest way of adding menu items (to specify the options menu for an activity) is inflating an

The easiest way of adding menu items (to specify the options menu for an activity) is inflating an XML file into the Menu via MenuInflater. With menu_main.xml we can do it in this way:A . override fun onCreateOptionsMenu(menu: Menu): Boolean { menuInflater.inflate(R.menu.menu_main, menu) return true }B . override fun onOptionsItemSelected(item:...

November 21, 2023 No Comments READ MORE +

Run your test in one of the following ways (select possible): (Choose three.)

Run your test in one of the following ways (select possible): (Choose three.)A . To run a single test, open the Project window, and then right-click a test and click Run.B . To test all methods in a class, right-click a class or method in the test file and click...

November 21, 2023 No Comments READ MORE +

In general, you should send an AccessibilityEvent whenever the content of your custom view changes. For example, if you are implementing a custom slider bar that allows a user to select a numeric value by pressing the left or right arrows, your custom view should emit an event of type TYPE_VIEW_TEXT_CHANGED whenever the slider value changes.

In general, you should send an AccessibilityEvent whenever the content of your custom view changes. For example, if you are implementing a custom slider bar that allows a user to select a numeric value by pressing the left or right arrows, your custom view should emit an event of type...

November 20, 2023 No Comments READ MORE +

Each time your test invokes onView(), Espresso waits to perform the corresponding UI action or assertion until the following synchronization conditions are met: (Choose three.)

Each time your test invokes onView(), Espresso waits to perform the corresponding UI action or assertion until the following synchronization conditions are met: (Choose three.)A . The message queue is empty.B . The message queue is not empty.C . There are some instances of AsyncTask currently executing a task.D ....

November 20, 2023 No Comments READ MORE +

Once your test has obtained a UiObject object, you can call the methods in the UiObject class to perform user interactions on the UI component represented by that object.

Once your test has obtained a UiObject object, you can call the methods in the UiObject class to perform user interactions on the UI component represented by that object. You can specify such actions as: (Choose four.)A . click() : Clicks the center of the visible bounds of the UI...

November 20, 2023 No Comments READ MORE +