On Mon, Mar 19, 2012 at 9:02 PM, ultravolks <[email protected]> wrote: > Hello, is it possible to get an authorization token from a local Google App > Engine without being connected to the Internet. > When I call AccountManagerFuture getResult() I can get a token only if I am > connected to the Internet. > With the code below, If I am off line IOException shows up. Could you > explain to me why or if there is a way to work offline?
The token is cached and has a certain validity period. If you get it once (while online), you should be able to use it even if offline if it is still valid. That said, what exactly the Google accounts manager does is undocumented, so it might be trying to connect for some reason even if you have a cached token. Or it could be a bug. Test different cases and check what the exception traces say. -- 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

