String[] validAccountTypes = getIntent().getStringArrayExtra( ChooseTypeAndAccountActivity.EXTRA_ALLOWABLE_ACCOUNT_TYPES_STRING_ARRAY); if (validAccountTypes != null) { buildTypeToAuthDescriptionMap(); Bundle bundle = new Bundle(); bundle.putString(AccountManager.KEY_ERROR_MESSAGE, "no allowable account types"); setResult(Activity.RESULT_OK, new Intent().putExtras(bundle)); finish(); return; setResultAndFinish(mAuthenticatorInfosToDisplay.get(0).desc.type); return; setContentView(R.layout.choose_account_type); ListView list = (ListView) findViewById(android.R.id.list);
private void setResultAndFinish(final String type) { Bundle bundle = new Bundle(); bundle.putString(AccountManager.KEY_ACCOUNT_TYPE, type); setResult(Activity.RESULT_OK, new Intent().putExtras(bundle)); VLog.v(TAG, "ChooseAccountTypeActivity.setResultAndFinish: " + "selected account type " + type); finish(); }
private void setResultAndFinish(final String type) { Bundle bundle = new Bundle(); bundle.putString(AccountManager.KEY_ACCOUNT_TYPE, type); setResult(Activity.RESULT_OK, new Intent().putExtras(bundle)); VLog.v(TAG, "ChooseAccountTypeActivity.setResultAndFinish: " + "selected account type " + type); finish(); }
String[] validAccountTypes = getIntent().getStringArrayExtra( ChooseTypeAndAccountActivity.EXTRA_ALLOWABLE_ACCOUNT_TYPES_STRING_ARRAY); if (validAccountTypes != null) { buildTypeToAuthDescriptionMap(); Bundle bundle = new Bundle(); bundle.putString(AccountManager.KEY_ERROR_MESSAGE, "no allowable account types"); setResult(Activity.RESULT_OK, new Intent().putExtras(bundle)); finish(); return; setResultAndFinish(mAuthenticatorInfosToDisplay.get(0).desc.type); return; setContentView(R.layout.choose_account_type); ListView list = (ListView) findViewById(android.R.id.list);
private void setResultAndFinish(final String type) { Bundle bundle = new Bundle(); bundle.putString(AccountManager.KEY_ACCOUNT_TYPE, type); setResult(Activity.RESULT_OK, new Intent().putExtras(bundle)); VLog.v(TAG, "ChooseAccountTypeActivity.setResultAndFinish: " + "selected account type " + type); finish(); }
String[] validAccountTypes = getIntent().getStringArrayExtra( ChooseTypeAndAccountActivity.EXTRA_ALLOWABLE_ACCOUNT_TYPES_STRING_ARRAY); if (validAccountTypes != null) { buildTypeToAuthDescriptionMap(); Bundle bundle = new Bundle(); bundle.putString(AccountManager.KEY_ERROR_MESSAGE, "no allowable account types"); setResult(Activity.RESULT_OK, new Intent().putExtras(bundle)); finish(); return; setResultAndFinish(mAuthenticatorInfosToDisplay.get(0).desc.type); return; setContentView(R.layout.choose_account_type); ListView list = (ListView) findViewById(android.R.id.list);