SearchActivity.java 文件源码

java
阅读 50 收藏 0 点赞 0 评论 0

项目:GiveIndiaApp 作者:
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_search);

    TelephonyManager telephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
       GsmCellLocation cellLocation = (GsmCellLocation)telephonyManager.getCellLocation();

       String networkOperator = telephonyManager.getNetworkOperator();
      // String mcc = networkOperator.substring(0, 3);
      // String mnc = networkOperator.substring(3);


      // int cid = cellLocation.getCid();
      //int lac = cellLocation.getLac();

       String mcc="404", mnc = "92", lac="1202", cid="31693";

    new RequestTask(this).execute("http://akarthik10.heliohost.org/scripts/cfg/loc.php?mcc="+mcc+"&mnc="+mnc+"&lac="+lac+"&cid="+cid);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号