I am writing an application which will communicate with a Google App
Engine (GAE) website, and I would like to authenticate against the
website using a user selected account in the Account Manager.
I setup the UI such that the user selects an Account object. I would
like to pass this Account object to an Android Service which maintains
an HttpClient. This HttpClient will be used to make an authentication
request to the GAE site and store the authentication cookie.
Subsequent communication between the Android Application and the GAE
site will be done using this HttpClient via the Android Service.
I'm working under MAC OSX 10.6.3, eclipse 3.5.2 (64 bit), with the
Android SDK Tools Rev 7 installed in my Android SDK and AVD manager.
I'm having difficulty using the AIDL files and tools.
First I'm able to create a simple AIDL file which generates properly
and which I can inherit from without issue:
package test.aidl;
interface IAppEngineJSONService {
Map postJSON( in String address, in Map input );
}
However, I'd like to create a method which can take in an Account
object as an input parameter, like this:
package test.aidl;
import android.accounts.Account;
interface IAppEngineJSONService {
Map postJSON( in String address, in Map input );
boolean authenticate(in String address, in Account account);
}
This does not generate stub classes. I thought maybe I'm missing
something to use a Parcelable object (since Account is parcelable),
but this works just fine:
package test.aidl;
import android.graphics.Bitmap;
interface IAppEngineJSONService {
Map postJSON( in String address, in Map input );
Bitmap testing();
boolean authenticate();
}
So it looks like the AIDL tool can handle Bitmap, but it can't handle
Account. Any idea why this is happening?
I suppose I could just work around it by passing the account.name
instead of the whole Account object, but i'm curious as to why I'm
unable to use this parcelable class in aidl.
--
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