Need to really close app when home is pressed

Creaky

Member
Licensed User
Longtime User
Hi all,

My app has a webview displaying a large animated gif file.
This consumes quite some CPU power, but that is not a problem when the user is looking at the animation.

When the user presses the homebutton though, the webview continues to play the animation in the background. The taskmanager on my SGSII shows the app even consumes up to 45% CPU time while in the background.
If the user doesn't notice this and quite the app with the exit menu item, it will suck the battery dry in less than an hour. So I really need a way to either kill my app when it is pushed to the background, or a way to have the webview stop running the animated gif.

Any suggestions?
 
Top