Your code looks very good. Thanks! With my new sim card I could successfully connect to GAE. I think the problem was, like you said, the expiration of the authentication token...
Thanks for your help! On 6 Feb., 21:15, Fabrizio Accatino <[email protected]> wrote: > I follow another way: > 1 - get auth token from AccountManager > 2 - try to get the auth Cookie from AppEngine > 3 - if step 2 fails, I invalidate the Auth token and restart from step 1. > > My very alpha code is > here:http://fhtino.blogspot.com/2011/02/connet-android-app-to-google-app-e... > > Fabrizio > > On Sun, Feb 6, 2011 at 8:12 PM, Sky <[email protected]>wrote: > > > One more question concerning the invalidation of the AuthToken. I read > > that it invalidates after 24h. What is when the Activity, holding the > > AuthToken (in NicksBlog the AppInfo class), ends (with finish() and > > onDestroy) and started again? In my opinion a new valid AuthToken is > > fetched every time the Appinfo class gets started. > > In this case, why do I have to invalidate the old AuthToken? > > > On 6 Feb., 19:46, Sky <[email protected]> wrote: > > > thanks for the clarification! > > > > On 6 Feb., 17:16, Fabrizio Accatino <[email protected]> wrote: > > > > > The Nick's way is the good way. > > > > > My note was about "OAuth". Afaik Android AccountManager class uses > > > > ClientLogin for authentication on App Engine. > > > > > Fabrizio > > > > > On Sun, Feb 6, 2011 at 5:03 PM, Sky <[email protected] > > >wrote: > > > > > > 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... > > > -- > > 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. > > -- 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.
