Motorola C370, C550, C450 technical manual Network API

Models: C450 C550 C370

1 86
Download 86 pages 61.66 Kb
Page 35
Image 35

6

Network API

Notes

It is important to take into consideration the blocking nature of many javax.microedition.io and java.io object methods with regards to networking applications. It is advisable to spawn another thread specifically dedicated to retrieving data in order to keep the user interface interactive. If a single thread is used to retrieve data on a blocking call, the user interface becomes inactive with the end-user perceiving the application as “dead”.

Reading from an InputStream using an array is faster then reading byte by byte, when the length of the data is known. For example, if the content length is provided in the header of the HttpConnection, then an array of the specified size can be used to read the data.

The InputStream and OutputStream as well as the Connection object need to be completely closed.

An application in the paused state can still continue to actively use the networking facilities of the Motorola C370, C450, and C550 series of handsets.

The platform does not support simultaneous voice and data transmissions.

35

Page 35
Image 35
Motorola C370, C550, C450 technical manual Network API