ringgono / python-for-android

Automatically exported from code.google.com/p/python-for-android
Apache License 2.0
0 stars 0 forks source link

droid.readLocation() returns empty result on Galaxy S #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open python interpreter on Samsung Galaxy S
2. call android.readLocation() having run android.startLocating()
3. Obverse empty result

What is the expected output? What do you see instead?
Expected output is the result type with both cell-triangulated location and GPS 
location. Instead an empty result is returned without either

What version of the product are you using? On what operating system?
Samsung Galaxy S with Android 2.2 installed. Python for android version version 
5 and SL4A version 5x.

Original issue reported on code.google.com by techknow...@gmail.com on 17 Apr 2011 at 12:40

GoogleCodeExporter commented 8 years ago
You need to wait for a "location" event before readLocation will have any data.
You can use getLastKnownLocation instead.

Original comment by rjmatthews62 on 20 Apr 2011 at 3:41