summaryrefslogtreecommitdiffstats
path: root/apps/Development/src/com
diff options
context:
space:
mode:
authorFred Quintana <fredq@google.com>2009-10-02 17:19:38 -0700
committerFred Quintana <fredq@google.com>2009-10-05 09:59:03 -0700
commitdb8fdbec4268697653d5688d0a0092483b3832f1 (patch)
tree6cce293ef94fe81d2ae2f4180f676deca1ef2b84 /apps/Development/src/com
parent06f70393bd6c10c24136492a4616019822c63299 (diff)
downloadandroid_development-db8fdbec4268697653d5688d0a0092483b3832f1.tar.gz
android_development-db8fdbec4268697653d5688d0a0092483b3832f1.tar.bz2
android_development-db8fdbec4268697653d5688d0a0092483b3832f1.zip
account manager api review changes
Diffstat (limited to 'apps/Development/src/com')
-rw-r--r--apps/Development/src/com/android/development/AccountsTester.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/Development/src/com/android/development/AccountsTester.java b/apps/Development/src/com/android/development/AccountsTester.java
index 00876957d..8e09c3dfb 100644
--- a/apps/Development/src/com/android/development/AccountsTester.java
+++ b/apps/Development/src/com/android/development/AccountsTester.java
@@ -33,7 +33,7 @@ import android.text.TextUtils;
import java.io.IOException;
-public class AccountsTester extends Activity implements OnAccountsUpdatedListener {
+public class AccountsTester extends Activity implements OnAccountsUpdateListener {
private static final String TAG = "AccountsTester";
private Spinner mAccountTypesSpinner;
private ListView mAccountsListView;
@@ -273,7 +273,7 @@ public class AccountsTester extends Activity implements OnAccountsUpdatedListene
} else if (item.getItemId() == R.id.accounts_tester_update_credentials) {
showDialog(UPDATE_CREDENTIALS_DIALOG_ID);
} else if (item.getItemId() == R.id.accounts_tester_confirm_credentials) {
- mAccountManager.confirmCredentials(new Account(mLongPressedAccount, COM_GOOGLE),
+ mAccountManager.confirmCredentials(new Account(mLongPressedAccount, COM_GOOGLE), null,
AccountsTester.this, new ConfirmCredentialsCallback(), null /* handler */);
}
return true;
@@ -349,7 +349,7 @@ public class AccountsTester extends Activity implements OnAccountsUpdatedListene
+ (mFeatures == null ? "none" : TextUtils.join(",", mFeatures)));
try {
Bundle result = future.getResult();
- Parcelable[] accounts = result.getParcelableArray(Constants.ACCOUNTS_KEY);
+ Parcelable[] accounts = result.getParcelableArray(AccountManager.KEY_ACCOUNTS);
Log.d(TAG, "found " + accounts.length + " accounts");
for (Parcelable account : accounts) {
Log.d(TAG, " " + account);
@@ -401,7 +401,7 @@ public class AccountsTester extends Activity implements OnAccountsUpdatedListene
public void run(AccountManagerFuture<Bundle> future) {
try {
Bundle bundle = future.getResult();
- String authToken = bundle.getString(Constants.AUTHTOKEN_KEY);
+ String authToken = bundle.getString(AccountManager.KEY_AUTHTOKEN);
mAccountManager.invalidateAuthToken(COM_GOOGLE, authToken);
} catch (OperationCanceledException e) {
Log.d(TAG, "invalidate: interrupted while getting authToken");