Hi,

  using the new Account API to access Google accounts I have code that works
with Android 2.1, but breaks with Android 2.0.1.

W/ResourceType(16375): No package identifier when getting name for resource
number 0x00000000
E/JavaBinder(16375): *** Uncaught remote exception!  (Exceptions are not yet
supported across processes.)
E/JavaBinder(16375): android.content.res.Resources$NotFoundException: String
resource ID #0x0
E/JavaBinder(16375):  at
android.content.res.Resources.getText(Resources.java:200)
E/JavaBinder(16375):  at
android.content.res.Resources.getString(Resources.java:253)
E/JavaBinder(16375):  at android.content.Context.getString(Context.java:149)
E/JavaBinder(16375):  at
com.google.android.googleapps.GoogleLoginService$AccountAuthenticatorImpl.getAuthTokenLabel(GoogleLoginService.java:586)
E/JavaBinder(16375):  at
android.accounts.AbstractAccountAuthenticator$Transport.getAuthTokenLabel(AbstractAccountAuthenticator.java:155)
E/JavaBinder(16375):  at
android.accounts.IAccountAuthenticator$Stub.onTransact(IAccountAuthenticator.java:123)
E/JavaBinder(16375):  at android.os.Binder.execTransact(Binder.java:287)
E/JavaBinder(16375):  at dalvik.system.NativeStart.run(Native Method)

  I don't think the code helps, but before you ask:

accountManager.getAuthToken(selectedAccount, "ah", null, myActivity,
new AccountManagerCallback<Bundle>() {

public void run(android.accounts.AccountManagerFuture<Bundle> f) {
try {
                                                        // Don't even get
here on an Android 2.0.1 device
String authToken = f.getResult().getString(AccountManager.KEY_AUTHTOKEN);

 doCoolAndExcitingStuffOnAnAndroid2Dot1Device(authToken);
 }
}, handler);


  In the same spirit: I did not run it on the emulator, because the API is
not there, not even when I create an emulator with the Google API.

  I don't see the source code for
com.google.android.googleapps.GoogleLoginService, so I can't check that.

Cheers,
Mariano

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