Is this broken?  What im getting is this On GSM side you use Telephony
Manager, but with CDMA the debugger throws an error

TelephonyManager tm = (TelephonyManager) getSystemService
(Context.TELEPHONY_SERVICE);
        CdmaCellLocation cd = (CdmaCellLocation) tm.getCellLocation();

        int BSID = cd.getBaseStationId();

Throws an exception with CDMA stating
java.lang.ClassCastException: android.telephony.gsm.GsmCellLocation

Why is this throwing a Gsm exception?   Does anyone know how to get
this working on CDMA?  or is this broken completely in 2.01?  Any help
would be much appreciated.
-- 
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

Reply via email to