How to return hashmap in an aidl file

匿名 (未验证) 提交于 2019-12-03 08:30:34

问题:

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();  } 

回答1:

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();  } 


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!