Android这样获取本机网络提供商呢?请看下面代码:

 public String getProvidersName()  {    String str = "N/A";    try    {      this.IMSI = this.telephonyManager.getSubscriberId();      System.out.println(this.IMSI);      if (this.IMSI.startsWith("46000"))       str = "中国移动";  break;      if (this.IMSI.startsWith("46002"))       str = "中国移动"; break ;      if (this.IMSI.startsWith("46001"))        str = "中国联通";      else if (this.IMSI.startsWith("46003"))        str = "中国电信";    }    catch (Exception localException)    {      localException.printStackTrace();    }         return str;  }

注意申明:

 this.telephonyManager = ((TelephonyManager)paramContext.getSystemService("phone"));


就这么简单。。。。

更多相关文章

  1. android获取手机信息以及服务商信息
  2. android 中调用接口发送短信
  3. Android(安卓)判断SIM卡属于哪个移动运营商
  4. Android(安卓)获取基站信息
  5. android通过代码来开启和关闭移动网络
  6. 中国电信已加盟Android阵营
  7. Google放弃“不做恶”? 意欲垄断Android
  8. 中国移动互联网:清一色的NOKIA!
  9. Android下编写HelloWorld

随机推荐

  1. Android(安卓)多个输入框的自动跳转
  2. VisionMobile:2012年移动开发者经济报告(六
  3. Android大变脸。。。
  4. 完整的Android表情功能处理方案
  5. 【Android】关于百分比布局多个LinearLay
  6. 山寨机翻身的日子可能快到了
  7. 实战:Android活动目录LiveFolder开发
  8. 百度语音合成(TTS) 在Android的使用方法
  9. Android平台手机 5大优势和劣势
  10. Unity与Android通信优化方案