List of usage examples for android.accounts AccountManager getUserData
public String getUserData(final Account account, final String key)
From source file:Main.java
public static String getKeyPwd(Account account, AccountManager accountManager) { return accountManager.getUserData(account, PRIVATE_PWD); }
From source file:Main.java
public static String getTwitterUsername(AccountManager paramAccountManager, Account paramAccount) { return paramAccountManager.getUserData(paramAccount, "account_t_username"); }
From source file:Main.java
public static String getAvatarUrl(AccountManager paramAccountManager, Account paramAccount) { return paramAccountManager.getUserData(paramAccount, "account_user_avatar"); }
From source file:Main.java
public static String getTwitterToken(AccountManager paramAccountManager, Account paramAccount) { return paramAccountManager.getUserData(paramAccount, "account_t_token"); }
From source file:Main.java
public static String getName(AccountManager paramAccountManager, Account paramAccount) { return paramAccountManager.getUserData(paramAccount, "account_user_name"); }
From source file:Main.java
public static boolean needsAddwidget(AccountManager paramAccountManager, Account paramAccount) { return paramAccountManager.getUserData(paramAccount, "account_add_widget") == null; }
From source file:Main.java
public static long getUserId(AccountManager paramAccountManager, Account paramAccount) { String str = paramAccountManager.getUserData(paramAccount, "account_user_info"); if (str != null) return Long.parseLong(str); return 0L;/*from w ww .jav a 2s. c om*/ }
From source file:Main.java
public static String getUserToken(Context context, Account account) { AccountManager manager = AccountManager.get(context); return manager.getUserData(account, AccountManager.KEY_AUTHTOKEN); }
From source file:Main.java
public static String getUserMail(Context context, Account account) { AccountManager manager = AccountManager.get(context); return manager.getUserData(account, USER_MAIL); }
From source file:Main.java
public static String getUserName(Context context, Account account) { AccountManager manager = AccountManager.get(context); return manager.getUserData(account, USER_NAME); }