Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Archived:Display.setCurrent(Alert alert, Displayable nextDisplayable) method does not work correctly on S60 2nd Edition (Known Issue)

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

The article is believed to be still valid for the original topic scope.

Article Metadata
Tested with
Devices(s): Nokia 6600
CompatibilityArticle
Created: User:Technical writer 1 (20 Aug 2007)
Last edited: hamishwillee (14 Aug 2013)

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.

This page was last modified on 14 August 2013, at 06:58.
21 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×