通过反射调用 com.android.internal.telephony.IccFileHandler 下的 loadEFLinearFixed(...)函数。
类IccFileHandler的构造函数如下:protected IccFileHandler(PhoneBase phone) {
super();
this.phone = phone;
}
但在调用loadEFLinearFixed的时候(method.invoke(...)),需要IccFileHandler的实例。这个实例该如何获取呢?
android反射构造
类IccFileHandler的构造函数如下:protected IccFileHandler(PhoneBase phone) {
super();
this.phone = phone;
}
但在调用loadEFLinearFixed的时候(method.invoke(...)),需要IccFileHandler的实例。这个实例该如何获取呢?
android反射构造
解决方案 »
- 新手求教怎么在电脑上配置安卓虚拟机和安卓编译环境
- 大家说说,如何做到降低内存消耗?如何优化流畅自如?有好的用户体验感!这个大家都说说 顶起来!!
- 传值问题,求高手解释
- 为什么,图片显示设置成了 填充整个父窗口 可是还是显示了原图片的大小?
- adb又启动不了啦。。。。救命呀。。。
- 如何学习android文件系统
- 读取本地图片……
- Android ANR异常
- android ImageView 图片旋转?
- JNI写的SO库文件中怎么打印变量?Log,printk和printf都用不了,自定义Log可以打印消息串。
- 做一个登录器
- android,ViewAdapter中结束动画时,出现残影,谁能给我分析分析?
Constructor constructor = c.getConstructor(Interge.Class, Interge.Class, Message.Class);
IccFileHandler iccFileHandle = constructor.newInstance(param, param, param);
首先感谢你的解答。类IccFileHandler的构造是: protected IccFileHandler(PhoneBase phone)Constructor constructor = c.getConstructor(此处应该是PhoneBase类);
Object instanceOfIccFileHandle = constructor.newInstance(此处应该是PhoneBase类的实例);
其中PhoneBase的构造:protected PhoneBase(PhoneNotifier notifier, Context context, CommandsInterface ci);
protected PhoneBase(PhoneNotifier notifier, Context context, CommandsInterface ci,
boolean unitTestMode);如果我上述的方法正确,那么PhoneBase类的实例如何获得呢?