I’d like to implement a bookmarks function in my app. I can handle everything besides saving and then loading the list of saved bookmarks. I plan to save the locations as Strings which contain the paths to the bookmarked directories.
The “Storage Options” page of the Developer Guide lists the available options, but doesn’t really specify what the benefits of each one are.
What is the best practice for saving this sort of data between sessions?
shared preferenceswhen you have small amount of data, more likely a name-value pair use when you want to save some preferences about the app.Sqlitewhen you have large amount of structured data. Like you have the names and grades of a Class then you must use aSQLiteI hope it will help you decide what you want. But in your case
Sqliteis a best option.