Interview Questions
Here are some questions you can ask yourself to solidify your understanding of this material:
- Name five different types of preferences.
- What attribute of a preference is used to store the selected value?
- How many shared preference files can one application have?
- Which source directory is the typical place to put preference definition files?
- Where can you find a shared preferences file for an application with the package name
com.androidbook.myapp
? - When is a shared preferences file first created: when the application is installed, or some time later? If later, when?
- What are some considerations if you are upgrading your application and there are new preferences?
- If you want to retrieve the current value of an
int
preference, ...
Get Pro Android 4 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.