Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I have read that the this works on some phones - the Google nexus phone being one of them. </p> <p>I tried to run your test code on my Motorolla Razr - it returns -1.</p> <p>By looking at the android source code (GsmServiceStateTracker.java) it looks like this feature is optional and most likely not implemented on many phones. The information you are looking for is sent as unsolicited message from the GSM modem and its not used for anything else (As far as I can see from the android sources) than the value returned from <code>getPsc()</code>.</p> <p>I mean why implement it if you don't have to.</p> <p>I also tried to extend your test code to obtain info about neighbouring cells which can also be used to get their PSC values. It does not work, as the at command used for getting neighbouring cell info is not implemented in my phone's GSM modem. </p> <pre><code>TelephonyManager telephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); GsmCellLocation cellLocation = (GsmCellLocation) telephonyManager.getCellLocation(); Log.d(TAG, "cid = " + cellLocation.getCid()); Log.d(TAG, "lac = " + cellLocation.getLac()); int psc = cellLocation.getPsc(); Log.d(TAG, "PSC = " + psc); List&lt;NeighboringCellInfo&gt; neighCell = null; neighCell = telephonyManager.getNeighboringCellInfo(); for (int i = 0; i &lt; neighCell.size(); i++) { NeighboringCellInfo thisCell = neighCell.get(i); int CID = thisCell.getCid(); int RSSI = thisCell.getRssi(); int PSC = thisCell.getPsc(); Log.d(TAG, " "+CID+" - "+RSSI + " - " + PSC); } </code></pre> <p>If you really want to find out what phones implement this, you should add a test to <a href="http://code.google.com/p/0xbench/" rel="nofollow">some benchmark app</a> and hopefully get some results in time.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload