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 . There are no instances...

Continue reading

So, in what overridden method we can handle that a preference in the tree rooted at this PreferenceScreen has been clicked?

In a class PreferenceFragmentCompat. As a convenience, this fragment implements a click listener for any preference in the current hierarchy. So, in what overridden method we can handle that a preference in the tree rooted at this PreferenceScreen has been clicked?A . onCreateLayoutManagerB . onCreatePreferencesC . onCreateRecyclerViewD . onPreferenceTreeClick View Answer Answer: D...

Continue reading

For example, we have a BufferedReader reader, associated with the json file through

For example, we have a BufferedReader reader, associated with the json file through InputStreamReader. To get a file data we can do this:A . var line: String? try { while (reader.readLine().also { line = it } != null) { builder.append(line) } val json = JSONObject(builder.toString()) return json } catch (exception: IOException) { exception.printStackTrace() }...

Continue reading

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 element.B . touch() :...

Continue reading

For example, our preferences.xml file was added by addPreferencesFromResource (R.xml.preferences).

For example, our preferences.xml file was added by addPreferencesFromResource (R.xml.preferences). Our preferences.xml file contains such item: <ListPreference android:id="@+id/order_by" android:key="@string/pref_sort_key" android:title="@string/pref_sort_title" android:summary="@string/pref_sort_summary" android:dialogTitle="@string/pref_sort_dialog_title" android:entries="@array/sort_oder" android:entryValues="@array/sort_oder_value" android:defaultValue="@string/pref_default_sort_value" app:iconSpaceReserved="false" /> In our Fragment, we can dynamically get current notification preference value in this way:A . val sortBy = PreferenceManager.getDefaultSharedPreferences(context).getString( context!!.getString(B . string.pref_sort_key), context!!.resources.getBoolean(C . bool.pref_default_sort_value) )D ....

Continue reading

What is a correct part of an Implicit Intent for sharing data implementation?

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_SENE ....

Continue reading