Hi, onDestroy()/onResume() will never be invoked in your code. They are methods of activity which you don't derive (and shouldn't derive).
You can detect suspend/resume via stop()/start() methods of the main class and re-activate the brightness code in start(). -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/11c643b9-66a9-46ae-a2d6-8f324286a118%40googlegroups.com.
