Hi, I have an app that uses accounts stored on device. When I want to access account (I need to retrieve some auth tokens) from an activity, user is presented with a screen that will allow him to grant access for application to said account. I have another problem though - sometimes I need to access accounts from a) service, b) loader. There is another method to obtain auth token that does not accept activity as parameter, instead it will post notification that user needs to authorize access to account.
While this second method sounds reasonable for use in service, I can't use this in loader. When said authorization screen needs to be displayed, the resulting AccountManagerFuture<Bundle> from getAuthToken() call contains Intent that should be triggered. I don't know, however, how to handle such situations properly. Should I stop loader and restart it sometime later? Are there any strategies that apply in such situations? Thanks for any info. -- 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

