예제 #1
0
파일: UTools.java 프로젝트: kindesa/tong
 public static String getUserId(Context context) {
   return UTools.Storage.getSharedPreferences(context, UConstants.BASE_PREFS_NAME)
       .getString(UConstants.SELF_USER_ID, "");
 }
예제 #2
0
파일: UTools.java 프로젝트: kindesa/tong
 /**
  * @author liananse
  * @param context
  * @return 2013-7-7
  */
 public static String getAccessToken(Context context) {
   return UTools.Storage.getSharedPreferences(context, UConstants.BASE_PREFS_NAME)
       .getString(UConstants.SELF_ACCESS_TOKEN, "");
 }