Android AccountManager API
Posted
by Steph
on Stack Overflow
See other posts from Stack Overflow
or by Steph
Published on 2010-05-17T04:55:31Z
Indexed on
2010/05/17
5:00 UTC
Read the original article
Hit count: 414
android
Hi everyone,
I'm struggling to understand the Android AccountManager API. As far as I got thinks working I can use the blockingGetAuthToken method and specify whether Android should provide a notification for user to allow or deny the request. Another possibility is to use getAuthToken and check if KEY_INTENT is returned. If that's the case I could start a new Activity where the user can confirm my request.
My problem is that I would like to call one of these two methods from within a Service. Is there any chance to get a callback once the user has made a decision?
Thanks for your help
© Stack Overflow or respective owner