Android Application Development (AND-401) — Question 87
Which of these is the incorrect method for an Application to save local data?
Answer options
- A. Extend PreferencesActivity and save in an XML file.
- B. Save as a file in the local file system.
- C. Save in the database using SQLite.
- D. Save in the hash table file using the Dictionary class.
Correct answer: D
Explanation
The correct answer is D because using the Dictionary class to save data in a hash table file is not a standard method for local data storage in applications. Options A, B, and C are all valid methods for storing data locally, such as using PreferencesActivity for XML files, the local file system for file storage, and SQLite for database storage.