@Override public Object call(Object who, Method method, Object... args) throws Throwable { IAccountManagerResponse response = (IAccountManagerResponse) args[0]; String accountType = (String) args[1]; String authTokenType = (String) args[2]; String[] requiredFeatures = (String[]) args[3]; boolean expectActivityLaunch = (boolean) args[4]; Bundle options = (Bundle) args[5]; Mgr.addAccount(response, accountType, authTokenType, requiredFeatures, expectActivityLaunch, options); return 0; } }
@Override public void doWork() throws RemoteException { addAccount(userId, mResponse, accountType, authTokenType, requiredFeatures, activity != null, optionsIn); } }.start();
@Override public Object call(Object who, Method method, Object... args) throws Throwable { IAccountManagerResponse response = (IAccountManagerResponse) args[0]; String accountType = (String) args[1]; String authTokenType = (String) args[2]; String[] requiredFeatures = (String[]) args[3]; boolean expectActivityLaunch = (boolean) args[4]; Bundle options = (Bundle) args[5]; Mgr.addAccount(response, accountType, authTokenType, requiredFeatures, expectActivityLaunch, options); return 0; } }
protected void runAddAccountForAuthenticator(String type) { if (Log.isLoggable(TAG, Log.VERBOSE)) { Log.v(TAG, "runAddAccountForAuthenticator: " + type); } final Bundle options = getIntent().getBundleExtra( ChooseTypeAndAccountActivity.EXTRA_ADD_ACCOUNT_OPTIONS_BUNDLE); final String[] requiredFeatures = getIntent().getStringArrayExtra( ChooseTypeAndAccountActivity.EXTRA_ADD_ACCOUNT_REQUIRED_FEATURES_STRING_ARRAY); final String authTokenType = getIntent().getStringExtra( ChooseTypeAndAccountActivity.EXTRA_ADD_ACCOUNT_AUTH_TOKEN_TYPE_STRING); VAccountManager.get().addAccount(mCallingUserId, type, authTokenType, requiredFeatures, options, null /* activity */, this /* callback */, null /* Handler */); }
@Override public void doWork() throws RemoteException { addAccount(userId, mResponse, accountType, authTokenType, requiredFeatures, activity != null, optionsIn); } }.start();
@Override public Object call(Object who, Method method, Object... args) throws Throwable { IAccountManagerResponse response = (IAccountManagerResponse) args[0]; String accountType = (String) args[1]; String authTokenType = (String) args[2]; String[] requiredFeatures = (String[]) args[3]; boolean expectActivityLaunch = (boolean) args[4]; Bundle options = (Bundle) args[5]; Mgr.addAccount(response, accountType, authTokenType, requiredFeatures, expectActivityLaunch, options); return 0; } }
@Override public void doWork() throws RemoteException { addAccount(userId, mResponse, accountType, authTokenType, requiredFeatures, activity != null, optionsIn); } }.start();
@Override public Object call(Object who, Method method, Object... args) throws Throwable { IAccountManagerResponse response = (IAccountManagerResponse) args[0]; String accountType = (String) args[1]; String authTokenType = (String) args[2]; String[] requiredFeatures = (String[]) args[3]; boolean expectActivityLaunch = (boolean) args[4]; Bundle options = (Bundle) args[5]; Mgr.addAccount(response, accountType, authTokenType, requiredFeatures, expectActivityLaunch, options); return 0; } }
@Override public Object call(Object who, Method method, Object... args) throws Throwable { IAccountManagerResponse response = (IAccountManagerResponse) args[0]; String accountType = (String) args[1]; String authTokenType = (String) args[2]; String[] requiredFeatures = (String[]) args[3]; boolean expectActivityLaunch = (boolean) args[4]; Bundle options = (Bundle) args[5]; Mgr.addAccount(response, accountType, authTokenType, requiredFeatures, expectActivityLaunch, options); return 0; } }
@Override public Object call(Object who, Method method, Object... args) throws Throwable { IAccountManagerResponse response = (IAccountManagerResponse) args[0]; String accountType = (String) args[1]; String authTokenType = (String) args[2]; String[] requiredFeatures = (String[]) args[3]; boolean expectActivityLaunch = (boolean) args[4]; Bundle options = (Bundle) args[5]; Mgr.addAccount(response, accountType, authTokenType, requiredFeatures, expectActivityLaunch, options); return 0; } }
protected void runAddAccountForAuthenticator(String type) { if (Log.isLoggable(TAG, Log.VERBOSE)) { Log.v(TAG, "runAddAccountForAuthenticator: " + type); } final Bundle options = getIntent().getBundleExtra( ChooseTypeAndAccountActivity.EXTRA_ADD_ACCOUNT_OPTIONS_BUNDLE); final String[] requiredFeatures = getIntent().getStringArrayExtra( ChooseTypeAndAccountActivity.EXTRA_ADD_ACCOUNT_REQUIRED_FEATURES_STRING_ARRAY); final String authTokenType = getIntent().getStringExtra( ChooseTypeAndAccountActivity.EXTRA_ADD_ACCOUNT_AUTH_TOKEN_TYPE_STRING); VAccountManager.get().addAccount(mCallingUserId, type, authTokenType, requiredFeatures, options, null /* activity */, this /* callback */, null /* Handler */); }
protected void runAddAccountForAuthenticator(String type) { if (Log.isLoggable(TAG, Log.VERBOSE)) { Log.v(TAG, "runAddAccountForAuthenticator: " + type); } final Bundle options = getIntent().getBundleExtra( ChooseTypeAndAccountActivity.EXTRA_ADD_ACCOUNT_OPTIONS_BUNDLE); final String[] requiredFeatures = getIntent().getStringArrayExtra( ChooseTypeAndAccountActivity.EXTRA_ADD_ACCOUNT_REQUIRED_FEATURES_STRING_ARRAY); final String authTokenType = getIntent().getStringExtra( ChooseTypeAndAccountActivity.EXTRA_ADD_ACCOUNT_AUTH_TOKEN_TYPE_STRING); VAccountManager.get().addAccount(mCallingUserId, type, authTokenType, requiredFeatures, options, null /* activity */, this /* callback */, null /* Handler */); }