Which of the following correctly completes the statement below to instantiate a SharedPreferences object?
SharedPreferences sharedPref =
A. PreferenceManager.getDefaultSharedPreferences(this);
B. SharedPreferences.getDefaultPreferenceManager(this);
C. PreferenceManager.SharedPreferences.getDefault(this);
D. SharedPreferences.PreferenceManager.getDefault(this);
Answer: A
Computer Science & Information Technology
You might also like to view...
A(n) ________ file is a compressed format for displaying video, and it is the default format found on Windows
Fill in the blank(s) with correct word
Computer Science & Information Technology
____ programming is a style of programming that focuses on an application's data and the methods you need to manipulate that data.
A. Object-oriented B. Functional C. Object D. Method
Computer Science & Information Technology