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. How can I load resources from Jar files?

I have a project in J2SE that I'm trying to port to android.  At the
moment, it is broken into several jars with resources in each jar.
Can I use Class.getResource("/path/to/resource") to load the
resources?  If I do, can I pipe the raw stream that I fetch (of, let's
say, a PNG file) into something like BitmapFactory to obtain the
object I need?

--~--~---------~--~----~------------~-------~--~----~

2. How to mark a test to be @SmallTest OR @MediumTest OR @LargeTest

Hello,

I am new to using JUnit framework in Android. I checked tests folder
of sample applications provided by Google. Android allows feature of
creating test suite of small OR medium OR large tests using "adb shell
am instrument -e size small \ medium \ large'.

Kindly suggest the criteria of deciding if a test should be marked as
@SmallTest OR @MediumTest OR @LargeTest?

I studied InstrumentationTestRunner class source code and found that
endTest function calculates execution time of test and can print a
test should belong to which test suite.

Thanks in advance.

Regards
Vibhor

--~--~---------~--~----~------------~-------~--~----~

3. Gettiing error while installing in Eclipse

4. Android Dev Phone 1 without sim card?

5. How to manually cache a page using CacheManager

6. Not able to get all vaues of contact

7. How to add a label to a list view