Hi,
I am curious about the data types that AIDL can support.
The document ( http://developer.android.com/guide/developing/tools/aidl.html
) says,
AIDL can support String, List, Map, etc.
But to me, the Map seems that it is not the member of them.
Here is my code.
====================
package my.andr.test
import android.graphics.Bitmap;
interface testservice{
int add(String s); // this is fine
int delete(String s); // this is fine
int addList(in List<String> list); // this is fine
int addMap(in Map<String, String> map); // this is not compiled.
build error.
int addMap(in Map<int, String> map); // this is not compiled. build
error.
}
====================
Is it because of
"Generic maps, (e.g. of the form Map<String,Integer> are not
supported. " in the document?
Then, how can I use the map?
I need the Map<int, String> to pass through AIDL.
Thanks in advance.
--
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