Package net.rim.device.api.system

Examples of net.rim.device.api.system.SMSPacketHeader


    public Datagram toDatagram( DatagramConnectionBase datagramConnectionBase ) throws IOException {
        DatagramBase datagram = null;
        byte[] data = _body.getBytes( "ISO-8859-1" );
        datagram = (DatagramBase) datagramConnectionBase.newDatagram();
        SmsAddress smsAddress = new SmsAddress( "//" + _phoneNumber );
        SMSPacketHeader smsPacketHeader = smsAddress.getHeader();
        smsPacketHeader.setMessageCoding( SMSPacketHeader.MESSAGE_CODING_ISO8859_1 );
        datagram.setAddressBase( smsAddress );
        datagram.write( data, 0, data.length );

        return datagram;
    }
View Full Code Here


                throws IOException {
            DatagramBase datagram = null;
            final byte[] data = _msg.getBytes("ISO-8859-1");
            datagram = (DatagramBase) datagramConnectionBase.newDatagram();
            final SmsAddress smsAddress = new SmsAddress("//" + _address);
            final SMSPacketHeader smsPacketHeader = smsAddress.getHeader();
            smsPacketHeader
                    .setMessageCoding(SMSParameters.MESSAGE_CODING_ISO8859_1);
            datagram.setAddressBase(smsAddress);
            datagram.write(data, 0, data.length);

            return datagram;
View Full Code Here

TOP

Related Classes of net.rim.device.api.system.SMSPacketHeader

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.