diff options
author | Fred Quintana <fredq@google.com> | 2011-09-14 23:19:35 -0700 |
---|---|---|
committer | Fred Quintana <fredq@google.com> | 2011-09-15 17:40:43 -0700 |
commit | 1121bb5e6ff20a2c694225300507ed486e04fea2 (patch) | |
tree | 862aaf04773ca62fc31eb97ee0f4ac00ec765041 /docs/html/sdk/api_diff/13/changes | |
parent | 070e7ee285792a2cc59e7ed1db17832e8c829275 (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/13/changes')
0 files changed, 0 insertions, 0 deletions