title: CellIdentityGsm on android
body: <p>In the code below, getCid(), getPsc(),getLac(),GetMnc(), getMcc() are all resulting in same vaules. </p>
  
  <p>Tested on API 17, with permissions</p>
  
  <pre><code> &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/&gt;
   &lt;uses-permission android:name="android.permission.ACCESS_COARSE_UPDATES"/&gt;
  </code></pre>
  
  <p>In java</p>
  
  <pre><code>TelephonyManager tm = (TelephonyManager)getSystemService(TELEPHONY_SERVICE);
  List&lt;CellInfo&gt; cellinoflist= tm.getAllCellInfo();
  for(CellInfo cellinfo : cellinoflist)
  {
  ...
  CellInfoGsm GSMinfo = (CellInfoGsm) cellinfo;
  CellIdentityGsm gsmCellIdentity= GSMinfo.getCellIdentity();
  if(gsmCellIdentity!= null) {
          Log.d(TAG, " mCid: "+gsmCellIdentity.getCid()+" mPsc: "+
               gsmCellIdentity.getPsc()+" mLac: "+gsmCellIdentity.getLac()+
       " mMnc: "+gsmCellIdentity.getMnc()+" mMcc:"+gsmCellIdentity.getMcc());
      }
   .....
  }
  </code></pre>
  
  <p>Logcat </p>
  
  <pre><code>mCid: 2147483647 mPsc: 2147483647 mLac: 2147483647 mMnc: 2147483647 mMcc:2147483647
  </code></pre>
  
  <p>am I missing something here,please suggest me.</p>