The application only needs permission to ask authenticators for access to an account, but when they install they don't have to say which accounts the app will access. Just because an app has permission to access your Facebook account doesn't mean you want the app to have access to your Google account.
If you call: getAuthToken(Account account, String authTokenType, Bundle loginOptions, Activity activity, AccountManagerCallback<Bundle> callback, Handler handler) instead of the other getAuthToken and supply it with your Activity then it should open the dialog boxes on top of the provided activity in the task stack. I don't have a Droid though so I can't say for sure whether or not this is implemented as expected with the Google and Facebook authenticators. On Dec 11, 8:33 am, polyclefsoftware <[email protected]> wrote: > Well, if anyone is still following this thread at all... > > I'm able to replicate the behavior RoryD describes, but it is still > less than ideal from the user's perspective. Here's what happens: > > 1) The user opens the app for the first time, clicks a button to log > in. > 2) Account Manager tries to get the auth token, returns null and > produces a system notification. > 3) At this point, the user would have to return to the home screen, > open Notifications, select the system notification that was just > produced and allow the app access to their user credentials. > 4) The user could then relaunch the app, click a button to log in, and > the Account Manager would then be able to successfully retrieve the > auth token and use it to log in. > > I really don't want users to have to exit my app to accept a > permission notification before reentering the app. Granted, they would > only have to do this once, but it's still extremely clunky. > > A couple of questions: > > 1) If we're already declaring the GET_ACCOUNTS and USE_CREDENTIALS > permissions in the manifest, and the user is aware of this when they > install the app, why the extra steps of notifying the user and forcing > them to allow the app to use their credentials? Isn't this overkill? > > 2) Is there a way to take the user directly to the notification screen > when the system sends the notification, rather than have the user > manually navigate away from the app to the notification screen? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

