系统是android4.0.3;3G网络能连接上网,但是程序获取SIM卡信息为空,获取网络连接状态也是失败,在手机上是可以的,麻烦帮助下啊
用的Smart210友善之臂Tiny210V2SDK 3G监控版S5PV210 Cortex-A8开发板;
获取SIM卡信息代码:
TelephonyManager telephonM = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
String deviceID= telephonM.getDeviceId();
获取网络状态代码:
ConnectivityManager connectivity = (ConnectivityManager) _context.getSystemService(Context.CONNECTIVITY_SERVICE);