private void SaveGCMData(){
  try {
    SharedPreferences preferences=getSharedPreferences();
    SharedPreferences.Editor editor=preferences.edit();
    editor.putString(PREFS_PUSHER_APP_ID_KEY,mPusherAppId);
    editor.putString(PREFS_PUSHER_URL_KEY,mPusherUrl);
    editor.putString(PREFS_PUSHER_FILE_TAG_KEY,mPusherBaseFileTag);
    editor.commit();
  }
 catch (  Exception e) {
    Log.e(LOG_TAG,"SaveGCMData failed " + e.getLocalizedMessage());
  }
}

private void SaveGCMData ( ) { try { SharedPreferences preferences = getSharedPreferences ( ) ; SharedPreferences . Editor editor = preferences . edit ( ) ; editor . putString ( PREFS_PUSHER_APP_ID_KEY , mPusherAppId ) ; editor . putString ( PREFS_PUSHER_URL_KEY , mPusherUrl ) ; editor . putString ( PREFS_PUSHER_FILE_TAG_KEY , mPusherBaseFileTag ) ; editor . commit ( ) ; } catch ( Exception e ) { Log . e ( LOG_TAG , "SaveGCMData failed " + e . getLocalizedMessage ( ) ) ; } }
save the gcm info to the preferences
