cell id greater than 0xffff
<p>I am recently working on a android project where I need to get the CELL Id and LAC (location Area Code) and wnen i run this in my device i get a value greater than the default max value of <code>0xffff</code> for <strong>CELL Id</strong> </p>

<p>why is this happening ? Does 3G and 2G make any difference?</p>

<p>This is my code</p>

<pre><code>TextView msg = (TextView)findViewById(R.id.textView2);

final TelephonyManager telephony = (TelephonyManager)

getSystemService(Context.TELEPHONY_SERVICE);

    if (telephony.getPhoneType() == TelephonyManager.PHONE_TYPE_GSM) {
        final GsmCellLocation location = (GsmCellLocation) telephony.getCellLocation();
        if (location != null) {
            msg.setText("LAC: " + location.getLac() + " CID: " + location.getCid());
          }
    }
</code></pre>
