[android-developers] Re: How to get other/neighbouring GSM operator's name (at my location)
I Think... the only task remaining is USE CID TO FIND THE NAME.
How can CID (Cell ID) be used to get Network operator's (Service Provider's) name.
On Thursday, 21 March 2013 16:07:03 UTC+5:30, Gaurav Wable wrote:
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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
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 android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home