[TIMOB-2918] Android: Update KS to remove accelerometer events on pause, etc
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T02:00:27.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M07 |
Components | Android |
Labels | accelerometer, android, kitchen, release-1.6.0, sink |
Reporter | Opie Cyrus |
Assignee | Opie Cyrus |
Created | 2011-04-15T03:32:56.000+0000 |
Updated | 2011-04-17T02:00:27.000+0000 |
Description
Spawned from #992
Update KS to handle pause, etc events and remove accelerometer listeners so that the accelerometer is not being used when the app is in the background.
(from [a8f1174c088857741e2f46190c81de76154f1e65]) [#2918 state:fixed-in-qa] updated KS accelerometer
added pause / resume handlers in accelerometer in order to add and remove accelerometer events so accelerometer wont run in background
https://github.com/appcelerator/titanium_mobile/commit/a8f1174c088857741e2f46190c81de76154f1e65"> https://github.com/appcelerator/titanium_mobile/commit/a8f1174c0888...
Fix can be verified via KS. When inside accelerometer example, when hitting back or home you should see a log entry that indicates the event has been removed. You should also see another log entry when resuming about the event being added again.
2.2 device, Titanium 1.6.0 6e8d57883
Confirmed...
Log entries appear as stated by Opie.
I can see the GPS antenna getting turned off when backing out of the Geo test, which confirms that the events are being removed on pause.
GPS antenna successfully turns on again when going back into the Geo test.