Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

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, what class is used, and which method?

  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint