diff options
author | Fred Quintana <fredq@google.com> | 2011-09-14 23:19:35 -0700 |
---|---|---|
committer | Fred Quintana <fredq@google.com> | 2011-09-15 16:39:50 -0700 |
commit | 89e063113ce457fb41914fcdf85f30b7d1a5f317 (patch) | |
tree | 7582e8fe169e6c0c189600ba6070f99ea9990549 /docs/html/sdk/api_diff/14/changes | |
parent | f9fa7543b12b4c54ee21f205b7d537494dbbbdf1 (diff) |
Add a generic account chooser/add account flow for apps.
The activity is launched as follows:
Account account1 = new Account("account1@gmail.com", "com.google")
Account account2 = new Account("account2@gmail.com", "com.google")
ArrayList<Account> accounts = new ArrayList<Account>();
accounts.add(account1);
accounts.add(account2);
String[] accountTypes = new String[]{"com.google", "com.android.exchange"};
Bundle addAccountOptions = null;
Intent intent = AccountManager.newChooseAccountIntent(account1, accounts,
accountTypes, addAccountOptions);
startActivityForResult(intent, 0);
Change-Id: I05a467bdc3552a2e39397b0182879351f4324389
Diffstat (limited to 'docs/html/sdk/api_diff/14/changes')
0 files changed, 0 insertions, 0 deletions