1
我使用HashMap來存儲一些鍵,它的值如下所示。關閉Android應用程序後的HashMap中的數據
Map<String, String> map = new HashMap<String, String>();
map.put(key, value);
它怎麼可能從HashMap中的數據存儲關閉我的應用程序之前和檢索他們時,我爲了能夠將新的條目添加到已有的條目下一次打開該應用程序。有人能幫助我嗎?
系列化。 http://docs.oracle.com/javase/tutorial/jndi/objects/serial.html – Kon
請查看http://developer.android.com/guide/topics/data/data-storage.html瞭解存儲選項。使用適合你的那個。檢索你需要的時候 – Raghunandan