thanks for the answer. I will try it, as soon as my new mobile sim card has been activated ;). In the 2.3 emulator it worked with another account...
ClientLogin: I did not find any sample code. The best documented way I found was Nick's blog. Maybe Google should provide some Tutorials/libs with sample code, that demonstrates the "perfect way" to authenticate an Android app with app engine using Google accounts... On 5 Feb., 21:38, Fabrizio Accatino <[email protected]> wrote: > Perhaps your authentication token was expired. > > In the android app, call .invalidateAuthToken(account.type, authToken) > on AccountManager class. > This releases the current authentication token. Then call again getAuthToken > to obtain a new and fresh authentication token. > > A note: AFAIK Android uses ClientLogin and not > OAuth.http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html > > Fabrizio > > On Fri, Feb 4, 2011 at 11:57 PM, Sky <[email protected]>wrote: > > > Hi all, > > > I am using the oauth authentication process to authenticate Android to > > App Engine described in Nick's blog: > > >http://blog.notdot.net/2010/05/Authenticating-against-App-Engine-from... > > > This worked fine until today. Today the authentication on app engine > > fails -> boolean authenticated = userServiceManager.isUserLoggedIn(); > > returns always false. > > > Is anyone out there using the same authentication process and has the > > same problem? > > Are there any changes concerning the URL the cookie is fetched? > > HttpGet http_get = new HttpGet("https://yourapp.appspot.com/_ah/login? > > continue=http://localhost/&auth=<https://yourapp.appspot.com/_ah/login?continue=http://localhost/&auth=>" > > + tokens[0]); > > > thanks! > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google App Engine for Java" group. > > To post to this group, send email to > > [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<google-appengine-java%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-appengine-java?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" 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/google-appengine-java?hl=en.
