My app sets screen brightness to max and turns off the screen saver.
How do i know when to reset these to default as it seems the app doesn't actually die until android feels it should.
this is annoying as it leaves the screen on etc
as this app has a specific purpose, can i close it when i'm done with it and reset the screen ? i know its not best practice but is there a better way ?
If you are using the phone lib to set brightness, the OS should return to the brightness settings you had previous to loading your app. With the phone lib this brightness setting is just for your app.
This code works fine. You can have the movie set very bright and when you exit, you can see the screen go back down in brightness to the setting before the app was started. Are you releasing the keepalive?