Skip to content Skip to sidebar Skip to footer

Android Account Authenticator: Distinguish Between Accounts In Preference Screen

My account authenticator works like a charm and its xml looks more or less this way:

Solution 1:

Some experimentation shows that the standard Android Settings app passes the target Account via the key "account" in the extras Bundle that comes with the Intent that launches the android:accountPreferences activity.

Unfortunately, I also can't seem see any documentation that guarantees whether this is always true; it'd be great if someone can prove otherwise.

Post a Comment for "Android Account Authenticator: Distinguish Between Accounts In Preference Screen"