Package net.rim.device.api.io.transport

Examples of net.rim.device.api.io.transport.TransportDescriptor


     * @see ConnectionAttemptListener#attemptSucceeded(int,
     *      ConnectionDescriptor)
     */
    public void attemptSucceeded(final int attemptNumber,
            final ConnectionDescriptor connection) {
        final TransportDescriptor transport =
                connection.getTransportDescriptor();

        final StringBuffer sb = new StringBuffer();

        // Prepare a connection success message
        sb.append("Sucess attempting: ").append(
                TransportInfo
                        .getTransportTypeName(transport.getTransportType()));
        if (transport.getUid() != null) {
            sb.append(": [").append(transport.getUid()).append(']');
        }
        sb.append("\n Attempt Number: ").append(attemptNumber);

        showStatus(sb.toString(), 2000);
    }
View Full Code Here

TOP

Related Classes of net.rim.device.api.io.transport.TransportDescriptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.