GsmCellLocaion.getCid frequently returns -1

by Richard Schilling » Tue, 04 Aug 2009 07:05:36 GMT

Sponsored Links
 I know that a -1 value from a call to GsmCellLocaion.getCid means that
the network is unknown.  But, I'm frequently getting that as a result
even though the phone is connected to the network and able to send/
receive calls.

Can anyone shed some light on why this happens and how to get around
it?  From what I can tell, GsmCellLocation.getCid() is the only API
call to get the tower id that the phone is connected to.

Thanks in advance.

Richard Schilling
Root Wireless


Other Threads

1. Out of memory exception on setting wallpaper

Hi ,

Im  trying to develop a home application . Whenever there is a shift
between landscape and potrait mode , im setting the wallpaper onCreate
() function using the below code .


The code seems to work fine for first few shifts , but after that I
run into an out of memory exception . Is  this the correct approach or
am i missing some thing here . Below is the exception that i get .

03-12 15:08:55.118: ERROR/AndroidRuntime(739):
java.lang.OutOfMemoryError: bitmap size exceeds VM budget



2. class does not exist?

I haven't looked in detail, but this looks like yet another case of a
platform application that uses private platform APIs and therefore
can't be built against the SDK.


Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further


3. The specified child already has a parent. You must call removeView() on the child's parent first.

4. ArcMovement on a BitMap - composite Animations

5. Defining dialogs in layout files?

6. Nokia Ovi store

7. GregorianCalendar.getOffset() returning 0