05-09-2013 08:40 AM
I created a HomeScreen class which extends MainScreen.
I need to check a condition when my HomeScreen comes on foreground.
How can I check it. ?
05-09-2013 08:46 AM
You can't tell if a screen comes to the foreground, but you can tell if your application comes to the foreground.
Look for the
From a screen you can tell if it has been hidden and is not visible using the '<screen>.onExposed() method. But there are a number of conditions that will drive that, not just coming to the foreground.
Note that activate() is driven at application start up too.