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

2009-12-17 Thread Ozius
Somebody try it with Google Analytics service? I am trying to implement this method in my program but I can't get it to work. This is my code: GoogleLoginServiceHelper.getCredentials(this, 54321, null, GoogleLoginServiceConstants.REQUIRE_GOOGLE,

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

2009-12-17 Thread JP
I've implemented this method to access user accounts. Sorry no answer to your q:, but you might interested to hear how I fared with this in the wild. There's two major issues: - Your app will not load on Android 2.0; the JVM will choke and complain - As far as Android 1.5 and 1.6 are concerned.

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

2009-11-18 Thread Mark Lowne
Very interesting discussion! Thanks everybody for the precious info. Did anyone manage to get BlockingHelper to work? (or, to put it differently: is there any way to do this without the need for an activity that receives the result?) On Oct 12, 7:27 pm, kostmo kos...@gmail.com wrote: It seems I

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

2009-10-12 Thread kostmo
It seems tantalizingly close, but I still can't get the GoogleLoginService method to work with Google App Engine (GAE). I'll start with a review of the method that currently works for me. Let's say that myapp is my GAE application name and authstring is the 203-character string I get from

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

2009-10-12 Thread kostmo
It seems I was the victim of an edge case. I had not done a factory reset of my ADP1 since Android 1.1. It works now! :) Karl On Oct 12, 1:13 am, kostmo kos...@gmail.com wrote: It seems tantalizingly close, but I still can't get the GoogleLoginService method to work with Google App Engine

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

2009-10-11 Thread Charlie
Hi, I've managed to get this to work for Google App Engine by specifying ah for the service parameter, for example : GoogleLoginServiceHelper.getCredentials(this, 54321, null, GoogleLoginServiceConstants.REQUIRE_GOOGLE, ah,

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

2009-09-10 Thread kostmo
I have been investigating whether GoogleLoginService can substitute for ClientLogin (see http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html) on Google App Engine. To use ClientLogin, I solicit the username and password from the user in a dialog and exchange them on the Google

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

2009-08-02 Thread Sergio
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 joachim.pfeif...@gmail.com wrote: Thanks for all the code - I've been trying to toy around with this

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

2009-08-02 Thread JP
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/tree/master It's got quite a yikes-factor however - from far it appears a candidate for breakage when a new version of Android is coming

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

2009-08-02 Thread Sergio
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,

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

2009-08-02 Thread JP
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

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

2009-08-01 Thread Sujay Krishna Suresh
Sergio, i dont think this'd work on an emulator... U need to have configured atleast once into any of google's services before u r able to get any results. On Fri, Jul 31, 2009 at 2:52 PM, Sergio cur...@gmail.com wrote: My intent seems to be empty for an errorcode key with a value of 0. Cheers

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

2009-08-01 Thread Sergio
Hi Sujay, Thanks for your reply. I configured email in the emulator and it was working properly, I could see my emails, so I thought that the GoogleLoginServiceHelper would be able to work. Cheers Sergio On Aug 1, 7:29 pm, Sujay Krishna Suresh sujay.coold...@gmail.com wrote: Sergio, i dont

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

2009-08-01 Thread JP
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

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

2009-07-31 Thread Sergio
Hi there, Does this work in the emulator? I am always getting null in the intent data Cheers Sergio On Jul 26, 10:26 am, ubikdroid markst3v...@googlemail.com wrote: Hi Karl, I call getCredentials in my Activity like this:         GoogleLoginServiceHelper.getCredentials(this, 54321,          

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

2009-07-31 Thread Sergio
My intent seems to be empty for an errorcode key with a value of 0. Cheers On Jul 26, 10:26 am, ubikdroid markst3v...@googlemail.com wrote: Hi Karl, I call getCredentials in my Activity like this:         GoogleLoginServiceHelper.getCredentials(this, 54321,                 null,            

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

2009-07-26 Thread ubikdroid
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

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

2009-07-22 Thread Micah
Bump. Star. Tag. Etc. While I imagine this will eventually be fixed in a future release we can only hope that Google gives developers some alternative (ie: better) way to get a UID for a given user so we can save profiles, etc. for our apps online and keep them associated with a user without

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

2009-07-15 Thread kostmo
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,

[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-09 Thread Sujay Krishna Suresh
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 can get the sid with ease... On Tue, Jun 9, 2009 at 1:40 PM, ubikdroid markst3v...@googlemail.comwrote: Tell me more! I'm not

[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

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

2009-06-09 Thread Agung Priyono
Dear Android, Thank for your info. On 6/9/09, ubikdroid markst3v...@googlemail.com wrote: 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

[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

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

2009-06-08 Thread Sujay Krishna Suresh
this tut is actually to help u get those credentials without having to worry abt anything... if u hv enough time to explore then there's definitely a very simple more efficient time using this... rather than forming ur own http requests... On Sat, Jun 6, 2009 at 2:24 AM, ubikdroid

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

2009-06-08 Thread André Charles Legendre
Hi Sujay What tut are you talking about ? --~--~-~--~~~---~--~~ 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

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

2009-06-08 Thread Sujay Krishna Suresh
I started this discussion to provide a tut for ppl interacting with google services frm their app... plz chk out my 1st post On Tue, Jun 9, 2009 at 10:41 AM, André Charles Legendre andre.legen...@gmail.com wrote: Hi Sujay What tut are you talking about ? -- Regards, Sujay Dave

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

2009-06-05 Thread mscwd01
Does this code allow you to get the email address of the phones owner, used when setting up the phone? I.e. the email address of the google account tied to to the phone? On Jun 5, 7:54 am, Sujay Krishna Suresh sujay.coold...@gmail.com wrote: hi guys i finally got a simple method to get the

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

2009-06-05 Thread Sujay Krishna Suresh
to be more specific it gives the interface that is used by other google apps to get user credentials... it also provides methods with which u can get the auth token or invalidate the token(logout)... On Fri, Jun 5, 2009 at 5:27 PM, mscwd01 mscw...@gmail.com wrote: Does this code allow you to

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

2009-06-05 Thread Sujay Krishna Suresh
u need certain permissions for this which tells the user that whether the app only reads the email id or if it trys to get the auth token... so the user'll no at the time of installing the app itself... On Fri, Jun 5, 2009 at 7:12 PM, mscwd01 mscw...@gmail.com wrote: Hmm, while this could be