You need to download framework.jar from:
http://github.com/android/platform_frameworks_opt_com.google.android/blob/7e12826d58454d3bade238e3b2c43fe402278f19/framework.jar


On Aug 2, 3:37 am, JP <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]>
> > > > 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to