FS#12312 - Android: Stop tick timer when app is closed

Attached to Project: Rockbox
Opened by Björn Stenberg (zagor) - Tuesday, 04 October 2011, 20:10 GMT
Last edited by Björn Stenberg (zagor) - Tuesday, 04 October 2011, 20:14 GMT
Task Type Patches
Category Operating System/Drivers
Status New
Assigned To No-one
Operating System Android
Severity Low
Priority Normal
Reported Version Release 3.9
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


Our tick timer eats CPU even when the app is closed and music is stopped. To fix this, I added a tick_pause() and tick_resume() to kernel-android.c, to be called from java when appropriate.

I've figured out where to call pause, but the current location of resume is inadequate. The app wakes up to a black screen.

A clue, anyone?
This task depends upon