Solution to display problems in J2ME network connection
Author: Chenyue PK.
Originating From: Http://blog.csdn.net/mailbomb
<?xml:namespace prefix = o ns = "Urn:schemas-microsoft-com:office:office"/>
In the network programming, some time will appear some in not receive the network data to display the interface, causes the interface display does not meet the request (for example the announcement display, will display the announcement background picture to display the announcement information again), here provides a simple solution to everybody:
The way to resolve this situation is divided into three steps:
1, in the interface that needs to be displayed, call the method of sending network data. The constructor method is called each time it is displayed, and the display's Setcurrent method is not called.
2, display the waiting interface (such as progress bar, etc.), to the user prompts, in the network connection.
3, after the processing of the network feedback data, call display of the Setcurrent method display displays the current interface.
This is a simple idea, but you can avoid the situation mentioned earlier.