在AIDL文件中,如何传递List<int>参数呢?
比如:package com.test;void test(in List<int> list);
这样写 死活就是编译不过去。 如何传递List<int> 呢 而不是int[]; 求大神解答啊 感谢
Androidaidl
比如:package com.test;void test(in List<int> list);
这样写 死活就是编译不过去。 如何传递List<int> 呢 而不是int[]; 求大神解答啊 感谢
Androidaidl
解决方案 »
- 如何把虚拟机sdcard里文件复制到电脑D盘test文件夹里
- android中的单元测试不重要吗?为什么网上都没有介绍的东西啊?
- android ant build error:
- android监听短息
- Android源码中的.p文件是什么东西呢
- android源码右上角的menu键怎么去掉
- 手机访问webservice的问题
- 用Android实现验证登录
- cannot cast 'android.view.View' to 'com.easybooks.android.text.Spinner'
- 打包apk报错
- 请教大家个问题,主界面分为三层,子界面如何不全屏?
- 菜鸟请教。。android图片显示的问题!!!!!!!!!!
支持的数据类型很少。
void playSoundEx(in List<SoundInfo> mSoundInfo, String entry);
我这样用 可以啊
By default, AIDL supports the following data types: All primitive types in the Java programming language (such as int, long, char, boolean, and so on)
String
CharSequence
List All elements in the List must be one of the supported data types in this list or one of the other AIDL-generated interfaces or parcelables you've declared. A List may optionally be used as a "generic" class (for example, List<String>). The actual concrete class that the other side receives is always an ArrayList, although the method is generated to use the List interface.
Map All elements in the Map must be one of the supported data types in this list or one of the other AIDL-generated interfaces or parcelables you've declared. Generic maps, (such as those of the form Map<String,Integer> are not supported. The actual concrete class that the other side receives is always a HashMap, although the method is generated to use the Map interface.AIDL支持List类型。