// Set TCP Cellular options
if (_tcpApn.getText().trim().length() != 0
|| _tcpApnUser.getText().trim().length() != 0
|| _tcpApnPassword.getText().trim().length() != 0) {
final TcpCellularOptions tcpOptions = new TcpCellularOptions();
tcpOptions.setApn(_tcpApn.getText().trim());
tcpOptions.setTunnelAuthUsername(_tcpApnUser.getText().trim());
tcpOptions.setTunnelAuthPassword(_tcpApnPassword.getText().trim());
factory.setTransportTypeOptions(
TransportInfo.TRANSPORT_TCP_CELLULAR, tcpOptions);
}