Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

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

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

Details

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?
   tickpause.patch (4.6 KiB)
 firmware/target/hosted/android/kernel-android.c |   34 +++++++++++++++---
 android/src/org/rockbox/RockboxService.java     |   44 ++++++++++++++++++++++--
 2 files changed, 71 insertions(+), 7 deletions(-)

This task depends upon

Loading...