Null Issue with NeighboringCellInfo, CID and LAC
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: For a while I was trying to get CellID and LAC of near base stations. Unfortunately I did not manage to do that. First option was to use: GsmCellLocation xXx = new GsmCellLocation(); CID = xXx.getCid(); LAC = xXx.getLac(); Toast output = Toast.makeText(getApplicationContext(), "Base station LAC is "+LAC+"\n" +"Base station CID is " +CID, Toast.LENGTH_SHORT); output.show(); But in this case I receive -1 value (as I understand that means it is not a GSM, but when i check with isGSM it shows "true"). Another way I have found surfing the net (i