通过反射调用 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 shell su后为什么不能输入了?
- Android 播放 混合的视频,音频流
- gesture.toBitmap 之后,如何在形成的bitmap上的手势开始点画个圆圈。表明是开始点。
- 关于Ril 驱动代码的问题
- Appication Context的生命周期 是什么
- 怎么样让一个linearLayout既有边框,又能使背景色为透明
- 毕业项目系统架构问题
- 关于ProgressDialog???????????
- 求助 想要求用户强制更新我们的软件 有什么好的办法,在线等
- 各位大神,怎么才能不让界面滚动到GridView的位置?
- 做一个登录器
- 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类的实例如何获得呢?