Dear all,
I tried to get the list of all GSM networks available at my
location through following code -
TelephonyManager telManager = (TelephonyManager)
getSystemService(Context.TELEPHONY_SERVICE);
telManager.listen(gsmListener,
PhoneStateListener.LISTEN_SIGNAL_STRENGTHS);
List<NeighboringCellInfo> cellInfo =
telManager.getNeighboringCellInfo();
StringBuilder sb =new StringBuilder("");
for(NeighboringCellInfo nInfo : cellInfo) {
sb.append("\ncid: "+ nInfo.getCid()+" lac: "+ nInfo.getLac()+" n/w
type: "+ nInfo.getNetworkType()+" psc: "+ nInfo.getPsc()+" rssi: "+
nInfo.getRssi()+"\n");
}
String disp = "Connected to:
"+telManager.getNetworkOperatorName()+"||"+telManager.getSimOperatorName()
+"\nrssi: "+strength+" || "+telManager.getLine1Number()+"\n\nNeighbours
"+cellInfo.size()+sb.toString();
This gives me the cell id, LAC, network type, PSC, RSSI of
neighbouring cell.
How can i get the network operator's name of neighbouring cell.
--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.