Sunday 11 August 2013

shared preference android

SharedPreferences sp_Detail = getSharedPreferences(Constant.
SHAREDPREFERENCES
, MODE_WORLD_WRITEABLE);
SharedPreferences.Editor spEdit_Event = sp_Detail.edit();
spEdit_.putString(Constant.
_ID, alst_Id.get(position));
spEdit_.putString(Constant.
_NAME, alst_Title.get(position));spEdit_.commit();






SharedPreferences ShareEvent = getSharedPreferences(Constant.
SHAREDPREFERENCES, MODE_WORLD_READABLE);
strEventID = ShareEvent.getString(Constant.EVENT_ID,null);

No comments:

Post a Comment