I have to store the HashMap value on SQLite with Keyset and reuse when application is restart using shared preference.
HashMap<Integer, String> hashMap;
hashMap = new HashMap<>();
//Insert Value
hashMap.put(btn.getId(), listValue);
// Read a Value
for (Integer ihashId :hashMap.keySet()) {
String ss = (String) hashMap.get(ihashId);
}
Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire