Code example for AccountAuthenticatorResponse

Methods: onResult

0
 
    public static void addAccount(Context ctx, String username, String password, Bundle userData, Parcelable response) {
        AccountAuthenticatorResponse authResponse = (AccountAuthenticatorResponse)response;
        Bundle result = AccountAuthenticatorImpl.addAccount(ctx, username, password, userData);
        if(authResponse != null)
            authResponse.onResult(result);
    } 
 
    public static Boolean hasAccount(Context ctx) {
        return AccountAuthenticatorImpl.hasLQFBAccount(ctx);
    } 
 
    public static void removeAccount(Context ctx) {
        AccountAuthenticatorImpl.removeLQFBAccount(ctx);
    } 
 
    public static void resyncAccount(Context context) {
        Log.i(TAG, "resyncAccount"); //$NON-NLS-1$
        AccountManager am = AccountManager.get(context.getApplicationContext());
        Account[] accounts = am.getAccountsByType(context.getResources().getString(R.string.account_type));
Stop searching for code, let great code find you!  Add Codota to your java IDE