Motorola MOTORAZR maxx V6 Developer's Manual page 153

Java me developer guide
Hide thumbs Also See for MOTORAZR maxx V6:
Table of Contents

Advertisement

Java ME Developer Guide
Chapter 22 - Network APIs
do
{
bytes_read = is.read(buffer, offset, bytes_left);
if (bytes_read > 0)
{
offset += bytes_read;
bytes_left -= bytes_read;
}
}
while (bytes_read > 0);
} catch (Exception ex) {
System.out.println("IO failed: "+ ex.getMessage());
}
finally {
closeAllStreams(i); //clean up
}
}
22.2 User Permission
The user of the handset will explicitly grant permission to add additional network
connections.
22.3 Indicating a Connection to the
User
When the java implementation makes any of the additional network connections, it
will indicate to the user that the handset is actively interacting with the network. To
indicate this connection, the network icon will appear on the handset's status bar as
shown in Figure 18 .
DRAFT - Subject to Change
Code Sample 8 Socket Connection
[153/201]

Advertisement

Table of Contents
loading

Table of Contents