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. Some carriers have
modified this particular area of Android and their custom ROMs are
incompatible with straight Android. This is an issue with Sprint (US),
or the HTC Hero on a carrier in Portugal (not sure which one). I am
sure, more. As an example, I've got the following (redacted) log from
Portugal:
11-19 11:13:19.951 W/dalvikvm( 4795): Verifier rejected class
Lcom/---------/-----------/MyApp;
11-19 11:13:19.951 W/dalvikvm( 4795): Class init failed in newInstance
call (Lcom/---------/-----------/MyApp;)
11-19 11:13:19.951 D/AndroidRuntime( 4795): Shutting down VM
11-19 11:13:19.951 W/dalvikvm( 4795): threadid=3: thread exiting with
uncaught exception (group=0x40013140)
11-19 11:13:19.951 E/AndroidRuntime( 4795): Uncaught handler: thread
main exiting due to uncaught exception
11-19 11:13:19.951 E/AndroidRuntime( 4795): Uncaught handler: thread
main exiting due to uncaught exception
11-19 11:13:19.961 E/AndroidRuntime( 4795): java.lang.VerifyError:
com.---------.-----------.MyApp
11-19 11:13:19.961 E/AndroidRuntime( 4795): at
java.lang.Class.newInstanceImpl(Native Method)
11-19 11:13:19.961 E/AndroidRuntime( 4795): at
java.lang.Class.newInstance(Class.java:1472)
Again, your app won't even load.

My recommendation: Don't bother to implement this, unless you're
building a one off for research or for your personal enjoyment.




On Dec 17, 5:21 am, Ozius <[email protected]> wrote:
> 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,
>                         "analytics",
>                          false);
>
> I have this permissions in my manifest:
>
> <uses-permission
> android:name="com.google.android.googleapps.permission.GOOGLE_AUTH.analytics"></
> uses-permission>
> <uses-permission
> android:name="com.google.android.googleapps.permission.GOOGLE_AUTH"></
> uses-permission>
>
> But I got a SecurityException:
> java.lang.SecurityException: caller pid 6213 uid 10044 lacks
> com.google.android.googleapps.permission.GOOGLE_AUTH.analytics
>
> I have added this permission to manifest... any idea?
>
> With other services like Calendar Data API (cl) and YouTube Data API
> (youtube) i don't have any problems.

-- 
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