Looks our needs are ahead of what's available. I also checked Open
Authentication but there isn't much at this point either.


On Aug 2, 3:04 pm, Sergio <cur...@gmail.com> wrote:
> Absolutely, however I hope the next version will have some kind of
> public API...
>
> On Aug 3, 3:59 am, JP <joachim.pfeif...@gmail.com> wrote:
>
> > Thanks Sergio - I did some more poking around and there seems to be a
> > new version, 
> > here:http://github.com/android/platform_frameworks_opt_com.google.android/...
>
> > It's got quite a yikes-factor however - from far it appears a
> > candidate for breakage when a new version of Android is coming out.
> > Putting everyone in the not-supposed-to-used-undocumented-features-and-
> > we-told-you-so corner, no?
>
> > On Aug 2, 4:32 am, Sergio <cur...@gmail.com> wrote:
>
> > > You need to download framework.jar 
> > > from:http://github.com/android/platform_frameworks_opt_com.google.android/...
>
> > > On Aug 2, 3:37 am, JP <joachim.pfeif...@gmail.com> wrote:
>
> > > > Thanks for all the code - I've been trying to toy around with this but
> > > > I was not able to locate the right imports or a library that includes
> > > > com.google.android.googleapps. Can anybody point me where I can find
> > > > that part?
>
> > > > On Jul 25, 3:26 pm, ubikdroid <markst3v...@googlemail.com> wrote:
>
> > > > > Hi Karl,
> > > > > I call getCredentials in my Activity like this:
>
> > > > >         GoogleLoginServiceHelper.getCredentials(this, 54321,
> > > > >                 null,
> > > > >                 GoogleLoginServiceConstants.REQUIRE_GOOGLE,  //
> > > > > require google
> > > > >                 null, // This means we get the credentials for
> > > > > GOOGLE_AUTH.OTHER_SERVICES
> > > > >                 false);
>
> > > > > then override onActivityResult:
>
> > > > >         @Override
> > > > >         protected void onActivityResult(int requestCode, int 
> > > > > resultCode,
> > > > > Intent intent){
> > > > >                 super.onActivityResult(requestCode, resultCode, 
> > > > > intent);
> > > > >                 if(requestCode == 54321){
> > > > >                         authToken = intent.getStringExtra
> > > > > (GoogleLoginServiceConstants.AUTHTOKEN_KEY);
> > > > >                 }
> > > > >         }
>
> > > > > Hope that helps.
>
> > > > > On Jul 15, 11:10 pm, kostmo <kos...@gmail.com> wrote:
>
> > > > > > 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/G......)
> > > > > > 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