Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1332] Android: KS Geo test fails with no location sources.

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:55:53.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.4.0
ComponentsAndroid
Labelsandroid, defect
ReporterDon Thorp
AssigneeDon Thorp
Created2011-04-15T02:49:39.000+0000
Updated2011-04-17T01:55:53.000+0000

Description

See http://developer.appcelerator.com/question/44381/nasty-android-geolocation-bug---illegalargumentexception#header"> Q&A

Comments

  1. Don Thorp 2011-04-15

    (from [cad4652a7d72861fcb686bd75c2d0d6904b92069]) [#1332 state:resolved] Handle the case where there are no providers available http://github.com/appcelerator/titanium_mobile/commit/cad4652a7d72861fcb686bd75c2d0d6904b92069"> http://github.com/appcelerator/titanium_mobile/commit/cad4652a7d728...

  2. Bryan Jackson 2011-04-15

    Tested this out.

    No longer blows up however:

    #1) isLocationServicesEnabled allways is null if location services are disabled or enabled

    #2) getCurrentPosition doesnt call success OR error when location services disabled.

    Result, if you call getCurrentLocation will never come back and our application hangs since it needs either a success or error callback to continue.

    Example:

    http://pastie.org/1051301">http://pastie.org/1051301

    If location services are disabled neither function is called.

  3. Don Thorp 2011-04-15

    (from [79762d6eaf30d10c357d4574cac156adf39d6900]) [#1332 state:resolved] It helps if I report the lack of providers back to the app. http://github.com/appcelerator/titanium_mobile/commit/79762d6eaf30d10c357d4574cac156adf39d6900"> http://github.com/appcelerator/titanium_mobile/commit/79762d6eaf30d...

JSON Source