That's a hex number. I just do this:

GsmCellLocation cl = (GsmCellLocation)
myTelephonyManager.getCellLocation();
int CELLID = cl.getCid();
int ci = CELLID & 0xffff;

and ci contains a "normal" 4-5 digit cell id. The GsmCellLocation is
from Eclair, but I originally wrote this for Donut...works fine.

Ken

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using "remove me" as the subject.

Reply via email to