I have a class DataContext to save data by Persistent Object.
DataContext data = new DataContext();
data.set("edit",myEditField.getText(); // 开发者_开发技巧ok
but
data.set("date",myDateField.getDate()); // not accept for save long type.
How can I save myDateField with Persistent object ?
BlackBerry persistent objects can only store objects and a long is a primitive. Just use the Long wrapper object and store that with your PersistentObject.
精彩评论