damonkohler / sl4a

SL4A brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device.
Apache License 2.0
2.43k stars 800 forks source link

Cell IDs #125

Open damonkohler opened 9 years ago

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:30

What device(s) are you experiencing the problem on?
Samsung Galaxy S (both Vibrant and Captivate), Motorola Atrix.

What firmware version are you running on the device?
2.1, 2.2, and 2.3

What steps will reproduce the problem?
Use the PhoneListener to listen to CELL_LOCATION_CHANGED of the device

What is the expected output? What do you see instead?
I see the Listener reports CellLocation really frequently. Within few seconds, 
it can reports several different CellIDs; even when the device is not on the 
move, it still reports some.

I'd like to get more information about Cell Ids reported by the PhoneListener 
provided. 

Also, on 2.3, the getPsc() returns 0 all the time when using GSMCellLocation. 
this is wrong.

Original issue reported on code.google.com by linh...@gmail.com on 18 Oct 2011 at 3:16

Copied from original issue: damonkohler/android-scripting#581

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:30

A stationary phone can still change cell location if the area is covered by 
multiple cell towers.

Original comment by barbaraj...@gmail.com on 18 Oct 2011 at 8:10

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:30

This is a few cell ids collected by using PhoneStateListener with 
ON_CELL_LOCATION_CHANGED. To me, I expect the device not to have handover so 
frequently. This is when i'm driving. 

My goal is to get the real serving cell that the device is connected to. I dont 
know what exactly the Listener reports below.

Any help would be appreciated. 

10/18/2011 5:54 18144
10/18/2011 6:01 18192
10/18/2011 6:01 18191
10/18/2011 6:01 18212
10/18/2011 6:02 18213
10/18/2011 6:03 18321
10/18/2011 6:04 18341
10/18/2011 6:05 18348
10/18/2011 6:05 18349
10/18/2011 6:05 18407
10/18/2011 6:07 18458
10/18/2011 6:08 18487
10/18/2011 6:08 18508
10/18/2011 6:10 22439

Original comment by linh...@gmail.com on 18 Oct 2011 at 8:31

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:30

If you're driving (and thus changing location), the device will keep changing 
cell towers because the signal strength for the various towers will continue to 
change.

Original comment by barbaraj...@gmail.com on 18 Oct 2011 at 9:07

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:30

I'm curious how the device keeps the connection stable while downloading 
something? even during a call if it keeps changing cell towers so frequently?

Original comment by linh...@gmail.com on 18 Oct 2011 at 9:13