Motorola maxx V6 사용자 설명서

다운로드
페이지 201
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
}
}
Code Sample 8 Socket Connection
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 .
Java ME Developer Guide
Chapter 22 - Network APIs
[153/201]
DRAFT - Subject to Change