Motorola maxx V6 manual User Permission, Indicating a Connection to User

Models: maxx V6

1 201
Download 201 pages 31.32 Kb
Page 153
Image 153

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

}

}

Code Sample 8 Socket Connection

22.2 User Permission

The user of the handset will explicitly grant permission to add additional network connections.

22.3Indicating 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 [153/201]

Page 153
Image 153
Motorola maxx V6 manual User Permission, Indicating a Connection to User, Draft Subject to Change 153/201