摘要:
开启/关闭 移动数据连接 Mobile DataDataconnection 开关的API 并没有直接提供给上层使用,不过可以通过Java的反射机制使用ITelephony来实现。 Method dataConnSwitchmethod; Class telephonyManagerClass; Object ITelephonyStub; Class ITelephonyClass; TelephonyManager telephonyManager = (TelephonyManager) context .getSystemService(Contex... 阅读全文