[android-developers] Re: GsmCellLocation.getCid() returns very large numbers.

2010-04-01 Thread Ken H
That's a hex number. I just do this:

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

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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
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.


[android-developers] Re: GsmCellLocation.getCid() returns very large numbers.

2010-03-31 Thread Murphy
I think that's the opposite: large numbers corresponds to 2G cells.
Check the network type using TelephonyManager.getNetworkType().

On 24 mar, 19:08, Curro arturo.oj...@gmail.com wrote:
 I get the same Cell IDs when I set the phone to 2G only, I still get
 very large numbers. Any other ideas?

 Thanks!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
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.


[android-developers] Re: GsmCellLocation.getCid() returns very large numbers.

2010-03-24 Thread Curro
I get the same Cell IDs when I set the phone to 2G only, I still get
very large numbers. Any other ideas?

Thanks!

On Feb 10, 6:10 am, Ne0 liamjamesalf...@googlemail.com wrote:
 Large ones are more then likely 3G CellId's. Put the phone on 2G only
 and see if you get any large numbers.

 On 3 Feb, 04:47, Ahmad ahm...@gmail.com wrote:



  Sorry for bringing up this topic from the past, but I was wondering if
  the OP or anyone else knows the cause or a solution to this problem

  I'm to get the LAC:CID on the G1 (android 1.6) and it’s always
  returning larger than allowed ( is max allowed) numbers (or -1).

  I get the exact same numbers whether I usegetCid() from
  GsmCellLocation or use onCellLocationChanged() from PhoneStateListener

 http://developer.android.com/intl/de/reference/android/telephony/gsm/..

  Any guidance would be appreciated

  On Mar 26 2009, 9:17 am, Richard Schilling

  richard.rootwirel...@gmail.com wrote:
   For the most part, when we call GsmCellLocation.getCid, we get normal
   looking numbers:

   public synchronized static int GetCellId() {

           GsmCellLocation location = (GsmCellLocation) 
   phoneMan.getCellLocation
   ();
           return (location.getCid());

   }

   This method often times returns small numbers under 1 which seem
   in line with other phones:
           -1 (unknown, but expected per the documentation
           3151
           4252
           8251

   etc ... all these look fine.  But, recently we're noticing some rather
   large numbers come back:

           21267748
           21267756
           27821304

   Has anyone seen this?  And, does anyone know what accounts for such a
   dramatic change in numbers?  Do the larger numbers contain other bits
   about the tower that I need to extract using bitwise flags?

   Thanks

   Richard Schilling
   Root Wireless

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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Re: GsmCellLocation.getCid() returns very large numbers.

2010-02-10 Thread Ne0
Large ones are more then likely 3G CellId's. Put the phone on 2G only
and see if you get any large numbers.

On 3 Feb, 04:47, Ahmad ahm...@gmail.com wrote:
 Sorry for bringing up this topic from the past, but I was wondering if
 the OP or anyone else knows the cause or a solution to this problem

 I'm to get the LAC:CID on the G1 (android 1.6) and it’s always
 returning larger than allowed ( is max allowed) numbers (or -1).

 I get the exact same numbers whether I usegetCid() from
 GsmCellLocation or use onCellLocationChanged() from PhoneStateListener

 http://developer.android.com/intl/de/reference/android/telephony/gsm/...http://developer.android.com/intl/de/reference/android/telephony/Phon...

 Any guidance would be appreciated

 On Mar 26 2009, 9:17 am, Richard Schilling

 richard.rootwirel...@gmail.com wrote:
  For the most part, when we call GsmCellLocation.getCid, we get normal
  looking numbers:

  public synchronized static int GetCellId() {

          GsmCellLocation location = (GsmCellLocation) 
  phoneMan.getCellLocation
  ();
          return (location.getCid());

  }

  This method often times returns small numbers under 1 which seem
  in line with other phones:
          -1 (unknown, but expected per the documentation
          3151
          4252
          8251

  etc ... all these look fine.  But, recently we're noticing some rather
  large numbers come back:

          21267748
          21267756
          27821304

  Has anyone seen this?  And, does anyone know what accounts for such a
  dramatic change in numbers?  Do the larger numbers contain other bits
  about the tower that I need to extract using bitwise flags?

  Thanks

  Richard Schilling
  Root Wireless

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


[android-developers] Re: GsmCellLocation.getCid() returns very large numbers.

2010-02-03 Thread Ahmad
Sorry for bringing up this topic from the past, but I was wondering if
the OP or anyone else knows the cause or a solution to this problem

I'm to get the LAC:CID on the G1 (android 1.6) and it’s always
returning larger than allowed ( is max allowed) numbers (or -1).

I get the exact same numbers whether I use getCid() from
GsmCellLocation or use onCellLocationChanged() from PhoneStateListener

http://developer.android.com/intl/de/reference/android/telephony/gsm/GsmCellLocation.html#getCid%28%29
http://developer.android.com/intl/de/reference/android/telephony/PhoneStateListener.html#onCellLocationChanged%28android.telephony.CellLocation%29

Any guidance would be appreciated


On Mar 26 2009, 9:17 am, Richard Schilling
richard.rootwirel...@gmail.com wrote:
 For the most part, when we call GsmCellLocation.getCid, we get normal
 looking numbers:

 public synchronized static int GetCellId() {

         GsmCellLocation location = (GsmCellLocation) phoneMan.getCellLocation
 ();
         return (location.getCid());

 }

 This method often times returns small numbers under 1 which seem
 in line with other phones:
         -1 (unknown, but expected per the documentation
         3151
         4252
         8251

 etc ... all these look fine.  But, recently we're noticing some rather
 large numbers come back:

         21267748
         21267756
         27821304

 Has anyone seen this?  And, does anyone know what accounts for such a
 dramatic change in numbers?  Do the larger numbers contain other bits
 about the tower that I need to extract using bitwise flags?

 Thanks

 Richard Schilling
 Root Wireless

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