2011-04-01 4 views
1

aidl 파일의 메서드에 대한 반환 유형으로 hashmap이 필요합니다.aidl 파일에서 hashmap을 반환하는 방법

그러나 알 수없는 반환 형식으로 오류가 나타납니다.

내 코드는 내가 구글 그룹의 솔루션을 가지고

interface IRemoteservice { 
    HashMap<String,CharSequence> getMapValues(); 
} 

답변

5

입니다. 이제 제대로 작동합니다. 해결책은 우리가 aidl 파일에서 Map을 선언해야합니다.

interface IRemoteservice { 
    Map getMapValues(); 
} 
+0

http://groups.google.com/group/android-developers/browse_thread/thread/3e6772b0041b6055# – sunita

+0

한 다음 스레드뿐만 아니라 관련이있을 수 : http://stackoverflow.com/q/3988609/2946787 + http://stackoverflow.com/a/6360359 – sfinja

관련 문제