Solution to the problem in the J2ME network connection

xiaoxiao2021-03-06  18

Solution to the problem in the J2ME network connection

Author: Chen Yuefeng

From: http://blog.9cbs.neet/mailbomb

In network programming, sometimes there are some display interfaces without receiving network data, resulting in interface display does not meet the requirements (such as announcement display, will show the background picture of the announcement to show the announcement information), here is a simple Solution to everyone:

Solve this method is divided into three steps:

1. In the interface that needs to be displayed, the method of sending network data is called. This constructor is called each time you display, which is not called the Display's setCurrent method.

2. Display the waiting interface (such as progress bar, etc.), give the user prompt, in the network connection.

3. After processing the data of the network feedback, call the Display's setCurrent method to display the current interface.

This is just a simple idea, but it can avoid the situation mentioned earlier.

转载请注明原文地址:https://www.9cbs.com/read-52140.html

New Post(0)