[android-developers] AccountManager.getAuthTokenByFeatures() with null authTokenType

2010-05-28 Thread ubikdroid
In Android 2.2 the private API GoogleLoginServiceHelper can no longer return auth tokens with the getCredentials() method it seems. This is fine as it is a private API and using it was always risky. However, I was using it to retrieve an auth token for use as a cookie to visit the Google Reader sit

[android-developers] Re: AccountManager.getAuthToken() problem with more than one app

2010-03-04 Thread ubikdroid
to > allow access to the selected account? I am not quite sure how it determines > the caller, but maybe it might not be the calling app, but the certificate > it was signed with that makes the difference. Did you use the same > certificate to sign both apps? > > On Thu, Mar 4, 20

[android-developers] AccountManager.getAuthToken() problem with more than one app

2010-03-04 Thread ubikdroid
I think I might have found an issue with using AccountManager in Android 2.x devices. I have 2 apps in the market that use Google Reader: Reader Widget Pro and Reader Widget Free. I was updating them both to use AccountManager and the new authentication method. I noticed that on my Nexus One when o

[android-developers] Re: Migrating Google Accounts from 1.x to 2.0

2009-11-18 Thread ubikdroid
My apps use GoogleLoginServiceHelper and as far as I know they work on the Motorola Droid. One user reported an unrelated bug with the Droid to me but did not mention any other issues. On Nov 9, 2:25 am, JP wrote: > Introduced in 2.0, the SDK offers AccountManager to access accounts. > For all wh

[android-developers] Re: Tut (SDK 1.5) Get google account of user

2009-07-26 Thread ubikdroid
){ authToken = intent.getStringExtra (GoogleLoginServiceConstants.AUTHTOKEN_KEY); } } Hope that helps. On Jul 15, 11:10 pm, kostmo wrote: > Hi ubikdroid, > Would you be able to tell me more about how you used getCredentials? > > I'm tryi

[android-developers] Re: Tut (SDK 1.5) Get google account of user

2009-06-09 Thread ubikdroid
Woot! I got it working. I tried before with the service set to "reader" but I got a SecurityException thrown even though I had the permission in the manifest. However, if you leave the service null in the getCredentials call and add the permission com.google.android.googleapps.permission.GOOGLE_A

[android-developers] Re: Tut (SDK 1.5) Get google account of user

2009-06-09 Thread ubikdroid
Tell me more! I'm not sure what you mean by "very simple & more efficient time using this". I'm trying to create a widget that gets the number of unread items from the Google Reader API. The auth token from android doesn't seem to be valid for this. I'm having to resort to asking the user to input

[android-developers] Re: Tut (SDK 1.5) Get google account of user

2009-06-08 Thread ubikdroid
I tried to use the auth token as a SID to login to http://www.google.com/reader/api/0/unread-count from a widget and it didn't work. I had to resort to using the ClientLogin API to get a valid SID. --~--~-~--~~~---~--~~ You received this message because you are sub