Archived:Display.setCurrent(Alert alert, Displayable nextDisplayable) method does not work correctly on S60 2nd Edition (Known Issue)
The article is believed to be still valid for the original topic scope.
Article Metadata
Tested with
Compatibility
Article
Description
The method public void setCurrent(Alert alert, Displayable nextDisplayable) requests an Alert to be shown; after the Alert is dismissed, nextDisplayable is shown. Currently, this works incorrectly. The title of nextDisplayable is shown on the screen, but otherwise the display contents are not updated. After this, no display changes are possible.
Solution
First, set the Displayable A, then set the Alert B (by using the setCurrent() method). Then add the CommandListener to the Alert. When the Alert is dismissed, you get the event. You can then change the Displayable in the Listener. Another option is to use thread and its Sleep() method and the Displayable.setCurrent() method to change the displayable, when the Alert is dismissed.
This issue has been corrected in software version 4.09.1.


(no comments yet)