This page was last modified 10:13, 23 August 2007.
KIJ000083 - Display.setCurrent(Alert alert, Displayable nextDisplayable) method
From Forum Nokia Wiki
Display.setCurrent(Alert alert, Displayable nextDisplayable) method
Platform: S60 2nd Edition Device: Nokia 6600
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.
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Midlet doesn't start on N70 | emillaud | Mobile Java General | 2 | 2006-05-29 10:03 |
| Randon application closes | jcanal | Mobile Java General | 9 | 2004-01-15 17:01 |
| Alert Screen | zafalimited | Mobile Java Tools & SDKs | 2 | 2006-01-26 12:15 |
| App.closed error on 6600 | FatalError | Mobile Java General | 16 | 2004-02-16 13:54 |
| 6230 Bluetooth | unfriendly | Mobile Java General | 1 | 2004-08-10 05:35 |

