android - Get only items with a pattern from sharedpreference -


I have value in my app shared preferences Item H1 Item 1 Item 2 Item 2 Item H3 Item 3

How can I get items like code ?

If they are all stored in a single priority file, then use the map to find and then use keys to match your pattern. Entries

The second option is to create a separate preferences file (for special items (in your example, with H). In this way you can read that the file does not have to check for all keys and one pattern .

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -