Creating Store -
static PersistentObject store; static { store = PersistentStore.getPersistentObject( 0xa1a569278238dad2L ); }
Insert datas to store -
String[] userinfo = {username, password}; synchronized(store) { store.setContents(userinfo); store.commit(); }
Retrive datas from store -
synchronized(store) { String[] currentinfo = (String[])store.getContents(); if(currentinfo == null) { Dialog.alert(_resources.getString(APP_ERROR)); } else { currentusernamefield.setText(currentinfo[0]); currentpasswordfield.setText(currentinfo[1]); } }
great site. i really love to visit this site……… orange mobiles
ReplyDelete