Hi ubikdroid,
Would you be able to tell me more about how you used getCredentials?

I'm trying this variation: getCredentials
(android.app.Activity,int,android.os.Bundle, java.lang.String,
java.lang.String, boolean)

Called from my activity, it is
getCredentials(this, 345, null, email, null, false);

Where 'email' is obtained from getAccount beforehand.  I have added
com.google.android.googleapps.permission.GOOGLE_AUTH.OTHER_SERVICES to
the manifest.  As opposed to the getAccount method, which returned an
array containing the email address, the getCredentials method called
with the above arguments returns null.  With what arguments are you
calling getCredentials?

The only docs I can find relating to this (http://
www.androidjavadoc.com/m5-rc15/com/google/android/googleapps/GoogleLoginServiceHelper.html)
seem to be outdated (wrong number of arguments).

Thanks,
Karl

On Jun 9, 6:58 am, ubikdroid <markst3v...@googlemail.com> wrote:
> 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_AUTH.OTHER_SERVICES to
> the manifest then it works!
>
> Thanks for the help Sujay. I was working at this for a long time!
>
> On Jun 9, 9:18 am, Sujay Krishna Suresh <sujay.coold...@gmail.com>
> wrote:
>
> > as i already said u need to explore the getcredentials method...
> > in the params of that method u need to specfy wat u need n for which
> > service...
> > if this is done then u cangetthe sid with ease...
>
> > --
> > Regards,
> > Sujay
> > Josh 
> > Billings<http://www.brainyquote.com/quotes/authors/j/josh_billings.html>
> > - "Every man has his follies - and often they are the most interesting
> > thing he has got."
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to