Interview Questions

Here are some questions you can ask yourself to solidify your understanding of this material:

  1. Name five different types of preferences.
  2. What attribute of a preference is used to store the selected value?
  3. How many shared preference files can one application have?
  4. Which source directory is the typical place to put preference definition files?
  5. Where can you find a shared preferences file for an application with the package name com.androidbook.myapp?
  6. When is a shared preferences file first created: when the application is installed, or some time later? If later, when?
  7. What are some considerations if you are upgrading your application and there are new preferences?
  8. 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.