Solution to display problems in J2ME network connection

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.