Those neighboring cells are all for your current carrier and it's optional
- many radios don't support it at all.

I don't think there's a public API to get the available networks.

R


On Thu, Mar 21, 2013 at 3:37 AM, Gaurav Wable <gswa...@gmail.com> 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+unsubscr...@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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to