Manage foreground events
The system calls Application.activate() when it brings an application to the foreground. Most applications do not need to override activate(). Applications should perform any initialization, including any required UiApplication.pushScreen() calls, in the application constructor. Because activate() can be called multiple times for the same application, applications should not perform a one-time initialization in this method.
An application can override activate() to perform additional processing when it is brought to the foreground. If you override activate(), invoke super.activate() from within the method definition so that the application repaints correctly.
Post a comment