{ "id": "102527", "key": "TIMOB-11235", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14621", "description": "2012 Sprint 23 API", "name": "2012 Sprint 23 API", "archived": true, "released": true, "releaseDate": "2012-11-19" }, { "id": "14623", "description": "2012 Sprint 23 JS", "name": "2012 Sprint 23", "archived": true, "released": true, "releaseDate": "2012-11-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-11-13T03:19:05.000+0000", "created": "2012-10-02T18:46:28.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "module_geolocation", "qe-testadded" ], "versions": [ { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" } ], "issuelinks": [], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-01-07T02:46:43.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "When creating a location provider, the minUpdateTime and minUpdateDistance do not return an invalid value. No matter we remove the quotes or add .0 to pass it as a double value.\r\nh4.Steps to Reproduce:\r\n1. load the app with the below location provider.\r\n2. open the ddms\r\n3. Filter the error messages with 'kroll'\r\nh4.Code:\r\n\r\n{code}\r\ngpsProvider = Ti.Geolocation.Android.createLocationProvider({\r\n\t\t\tname: Ti.Geolocation.PROVIDER_GPS,\r\n\t\t minUpdateTime: '5.0', \r\n\t\t minUpdateDistance: '3.0'\r\n\t});\r\n{code}\r\n\r\nh4.Error Log:\r\n{code}\r\n10-02 11:37:39.241: E/LocationProviderProxy(440): (KrollRuntimeThread) [192,1517] Invalid value [5.0] found for minUpdateTime, returning default\r\n10-02 11:37:39.241: E/LocationProviderProxy(440): (KrollRuntimeThread) [1,1518] Invalid value [3.0] found for minUpdateDistance, returning default\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Ti.Geolocation.Android.locationProvider reports invalid value [x] found for minUpdateTime and minUpdateDistance", "creator": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [ { "id": "107098", "key": "TIMOB-12154", "fields": { "summary": "Backport: TIMOB-11235", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } ], "reporter": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK 2.1.1 GA, 2.1.2 GA, Android 2.2, Android 2.3.3, Android 2.3.6", "comment": { "comments": [ { "id": "225936", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/3373\nSteps for FR:\n1. Run the below app.js:\n{code}\nvar gpsProvider = Ti.Geolocation.Android.createLocationProvider({\n\tname : Ti.Geolocation.PROVIDER_GPS,\n\tminUpdateTime : '5.0',\n\tminUpdateDistance : '3.0'\n});\nTi.Geolocation.Android.addLocationProvider(gpsProvider);\n\nTi.API.info(\"******************** minUpdateTime = \" + gpsProvider.minUpdateTime);\nTi.API.info(\"******************** minUpdateDistance = \" + gpsProvider.minUpdateDistance); \n{code}\n2. Check the log. It should show:\n{code}\nI/TiAPI ( 7727): ******************** minUpdateTime = 5\nI/TiAPI ( 7727): ******************** minUpdateDistance = 3\n{code}", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-02T00:45:16.000+0000", "updated": "2012-11-02T00:45:16.000+0000" }, { "id": "232554", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Created a subtask for back porting the PR.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-26T23:50:24.000+0000", "updated": "2012-12-26T23:50:24.000+0000" }, { "id": "233363", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The values are accepted and no error is shown.\r\nVerified on:\r\nTitanium Studio: 3.0.1.201212181159\r\nTitanium SDK: 3.1.0.v20130105233407\r\nAndroid Device: LG P970 (v2.2), Samsung Galaxy Note (v2.3.6), Nexus 7 (v4.1)", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-06T23:13:48.000+0000", "updated": "2013-01-06T23:13:48.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }