挂断电话
来源:互联网 发布:java程序员面试简历 编辑:程序博客网 时间:2024/04/30 13:26
TelephonyManager tm = (TelephonyManager) getApplicationContext() .getSystemService(Service.TELEPHONY_SERVICE);
try {
Class<TelephonyManager> c = TelephonyManager.class;
Method getITelephonyMethod = null;
try {
getITelephonyMethod = c.getDeclaredMethod("getITelephony", (Class[]) null);
getITelephonyMethod.setAccessible(true);
} catch (Exception e) {
e.printStackTrace();
}
try {
iTelephony = (ITelephony) getITelephonyMethod.invoke(tm,
(Object[]) null);
} catch (Exception e) {
e.printStackTrace();
}
} catch (Exception e1) {
e1.printStackTrace();
try {
Class<TelephonyManager> c = TelephonyManager.class;
Method getITelephonyMethod = null;
try {
getITelephonyMethod = c.getDeclaredMethod("getITelephony", (Class[]) null);
getITelephonyMethod.setAccessible(true);
} catch (Exception e) {
e.printStackTrace();
}
try {
iTelephony = (ITelephony) getITelephonyMethod.invoke(tm,
(Object[]) null);
} catch (Exception e) {
e.printStackTrace();
}
} catch (Exception e1) {
e1.printStackTrace();
}
try {
iTelephony.endCall();
} catch (RemoteException e) {
e.printStackTrace();
}
0 0
- 挂断电话
- 挂断电话
- 挂断电话
- 挂断电话
- 来电时挂断电话
- Android 挂断电话流程
- android_ITelephony_endCall_挂断电话
- android_ITelephony_endCall_挂断电话
- Android 挂断电话流程
- Android 挂断电话流程
- 使用AIDL挂断电话
- 采用aidl挂断电话
- android_ITelephony_endCall_挂断电话 .
- 转:自动挂断电话
- Android自动挂断电话
- Android挂断电话代码
- 手机自动挂断电话
- AIDL实现挂断电话
- win2008 .net 网站突然提示:此实现不是 Windows 平台 FIPS 验证的加密算法的一部分
- web添加验证码
- Ansible安装和基本配置
- lua垃圾回收机制
- 使用ftpserver,用户密码折腾了很
- 挂断电话
- Android okhttputils显示下载进度
- linux命令
- 在JSP中使用JavaBean
- 认识spring security
- C#多线程Lock锁定的使用例子(多线程线程同步)
- Timequest Timing Analyzer进行时序分析(一)
- angular五种服务详解
- mysql数据类型详解2