Question: 1
Filter logcat messages. If in the filter menu, a filter option ''Edit Filter Configuration''? means:
Question: 2
With our Context we can get SharedPreferences with a method, named: getSharedPreferences (String name, int mode). What value can we transfer in a ''mode''parameter?
Question: 3
''workManager'' is an instance of WorkManager. Select correct demonstration of WorkRequest cancellation:
Question: 4
An example. In our ViewModelFactory (that implements ViewModelProvider.Factory) we have an instance of our Repository, named mRepository. Our ViewModel has such constructor:
public MyViewModel(MyRepository myRepository)...
Next, in our ViewModelFactory create ViewModel method (overriden) looks like this:
@NonNull
@Override
public T create(@NonNull Class modelClass) { try {
//MISSED RETURN VALUE HERE
} catch (InstantiationException | IllegalAccessException | NoSuchMethodException | InvocationTargetException e) {
throw new RuntimeException("Cannot create an instance of " + modelClass, e);
}
}
What should we write instead of ''//MISSED RETURN VALUE HERE''?
Question: 5
''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: