Motorola C370 Manuale Utente
6
Network API
Network API
35
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
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
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
header of the
HttpConnection
, then an array of the specified size can be used to
read the data.
The
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
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.
The platform does not support simultaneous voice and data transmissions.