5

I want hashmap as my return type for a method from aidl file.

But it is giving error as unknown return type.

My code is

interface IRemoteservice { 
    HashMap<String,CharSequence> getMapValues(); 
}
Dante May Code
  • 11,177
  • 9
  • 49
  • 81
sunita
  • 141
  • 1
  • 4

1 Answers1

8

I got the solution from google groups. And now it is working fine. Solution is we have to declare Map in aidl file.

interface IRemoteservice { 
   Map getMapValues(); 
}
JaM
  • 549
  • 4
  • 15
sunita
  • 141
  • 1
  • 4
  • http://groups.google.com/group/android-developers/browse_thread/thread/3e6772b0041b6055# – sunita Apr 01 '11 at 03:02
  • +1 and the following thread may be relevant as well: http://stackoverflow.com/q/3988609/2946787 + http://stackoverflow.com/a/6360359 – sfinja Dec 29 '13 at 20:02