aidl does not work with Maps (contrary to documentation)

Put your problem here if it does not fit any of the other categories.

aidl does not work with Maps (contrary to documentation)

Postby FredB » Fri Feb 19, 2010 12:36 am

I have seen no post anywhere about this - I am trying to use the aidl with an argument of type Map<String, String> and the conversion from aidl to java does not work. The documentation says it should. Nothing on the web other than restatement of the 'fact' that this ok.

I tried List<String> as an argument and it worked fine, so it isn't a matter of my configuration or some non-aidl problem. I also tried other various types for Map, but nothing is recognized by the aidl.

If anyone can help, it'd be much appreciated as I'm otherwise forced into hacking a solution (i.e., making my own Map class which I'd rather not).

Regards

Fred
Fred B
FredB
Freshman
Freshman
 
Posts: 4
Joined: Thu Oct 29, 2009 6:39 pm

Top

silly rtfm mistake....

Postby FredB » Fri Feb 19, 2010 5:53 pm

Well, that silly! I should have read more carefully - Maps must just be Map with no "<>". So


int myMethod(in Map theMap) works (or at least compiles - I'll find out if it really works).
Fred B
FredB
Freshman
Freshman
 
Posts: 4
Joined: Thu Oct 29, 2009 6:39 pm

Re: aidl does not work with Maps (contrary to documentation)

Postby steven_andriod » Thu Nov 11, 2010 6:39 am

Generic maps, (e.g. of the form Map<String,Integer> are not supported)
steven_andriod
Freshman
Freshman
 
Posts: 3
Joined: Sat Oct 30, 2010 9:00 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 24 guests