09-12-2012 04:00 PM
how to track screen painting actions when application in background after switch application.
My application is chat application when ever i switch it in background mode still my screen get updated due to recived feeds , how to stop painting of screen in background mode
09-12-2012 07:21 PM
You can detect that your app is in the background using
Remember that the Application deactivate() method is called when the app goes to background, activate() is called when coming to foreground. You might be able to use these.
One thing I would also consider is onObscured() and onExposed(). onObscured to switch it off, onExposed to refresh the screen. The only problem is these are called in other circumstances, not just swap to background.