Application

Follow the steps in Activity12.1 attached below. Get screenshots and explain the different parts of your app.

Questions

Answer and explain the following questions:

1. Why are application preferences described as sets of data values that are stored persistently?

a. The application data cannot be erased.

b. The application data can only be erased in certain lifecycle events.

c. The application data can be lost if you close the application.

d. The application can be started and stopped without losing the data.

2. Which of the following is not a data type that is supported as preference-setting values?

a. Float values

b. Fixed values

c. Long values

d. Boolean values

3. Which one of the following is a step you take in order to add preferences support to your application?

a. Make changes to the preferences using the Editor.

b. Use the android:Preferences attribute.

c. Locate the preferences in the android.support package.

d. Use the onSupport() callback method.

4. What does the SharedPreferences.Editor.clear() method do?

a. Removes all preferences

b. Clears the application data

c. Removes a specific preference

d. Commits all preference changes

5. Application preferences are stored internally as what type of file?

a. DOCX

b. XHTML

c. XML

d. TXT

6. What class do you use if you have a group of user settings and you want to create a simple way in which the user can edit them?

a. The PreferenceEdit class

b. The PreferenceActivity class

c. The PreferenceAccess class

d. The PreferenceIntent class

7. Which preference was released in Android API Level 11 and is not backward compatible?

a. ListPreference

b. ViewPreference

c. CancelPreference

d. MultiSelectListPreference

8. Which attribute is used to give more details about a preference?

a. android:detail

b. android:synopsis

c. android:summary

d. android:statement

9. Which feature, introduced in Android 3.0, allows your application to present a list of options for navigating to setting subscreens?

a. The titles feature

b. The headers feature

c. The list feature

d. The directory feature

10. Which feature was introduced on Android Marshmallow that easily implements a full data backup and restore?

a. Google Play Store

b. iCloud

c. Cloud Save

d. Auto Backup for Apps

Leave a Reply

Your email address will not be published. Required fields are marked *