{ "id": "63550", "key": "TIMOB-2918", "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": "11240", "name": "Release 1.6.0 M07", "archived": true, "released": true, "releaseDate": "2011-01-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T02:00:27.000+0000", "created": "2011-04-15T03:32:56.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "accelerometer", "android", "kitchen", "release-1.6.0", "sink" ], "versions": [], "issuelinks": [], "assignee": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "updated": "2011-04-17T02:00:27.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": "{html}
Spawned from #992
\nUpdate KS to handle pause, etc events and remove accelerometer\nlisteners so that the accelerometer is not being used when the app\nis in the background.
(from [a8f1174c088857741e2f46190c81de76154f1e65])\n[#2918 state:fixed-in-qa] updated KS\naccelerometer
\nadded pause / resume handlers in accelerometer in order to add\nand remove accelerometer events so accelerometer wont run in\nbackground
\n\nhttps://github.com/appcelerator/titanium_mobile/commit/a8f1174c0888...
Fix can be verified via KS. When inside accelerometer example,\nwhen hitting back or home you should see a log entry that indicates\nthe event has been removed. You should also see another log entry\nwhen resuming about the event being added again.
2.2 device, Titanium 1.6.0 6e8d57883
\nConfirmed...
\nLog entries appear as stated by Opie.
\nI can see the GPS antenna getting turned off when backing out of\nthe Geo test, which confirms that the events are being removed on\npause.
\nGPS antenna successfully turns on again when going back into the\nGeo test.
\n