2021
04-27
04-27
Android获取移动网络信号强度的方法
判断有没有SIM卡获取移动网络的信号,一定要判断是否插了SIM卡,没插卡肯定是没法获取的/***判断是否包含SIM卡**@return状态*/publicstaticbooleanhasSimCard(Contextcontext){TelephonyManagertelMgr=(TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);intsimState=telMgr.getSimState();booleanresult=true;...
继续阅读 >