Blackberry: how to make a data structure (for example Hashtable) persistable?
问题 I have this code which works well: static { myStore = PersistentStore.getPersistentObject(MY_LONG_KEY); myList = (Vector) myStore.getContents(); if (_storedStations == null) { myList = new Vector(4); // prepopulate with fake data myList.addElement(new MyItem("Eins")); myList.addElement(new MyItem("Zwei")); myList.addElement(new MyItem("Drei")); myList.addElement(new MyItem("Vier")); myStore.setContents(myList); } } class MyItem implements Persistable { ..... } probably because the