Motorola MOTORAZR maxx V6 Developer's Manual page 164

Java me developer guide
Hide thumbs Also See for MOTORAZR maxx V6:
Table of Contents

Advertisement

Java ME Developer Guide
Chapter 22 - Network APIs
public static Command backCommand;
public static Command sendCommand;
public static TextField address_tf;
public static TextField port_tf;
public static TextField message_text_tf;
String[] binary_str = {"Send BINARY message"};
public static ChoiceGroup binary_cg;
byte[] binary_data = {1, 2, 3, 4, 5, 6, 7, 8, 9};
String address;
String text;
MessageConnection conn = null;
TextMessage txt_message = null;
BinaryMessage bin_message = null;
public SMS_send(){
address_tf = new TextField("Address:", "", 32, TextField.PHONENUMBER);
port_tf = new TextField("Port:", "1000", 32, TextField.PHONENUMBER);
message_text_tf = new TextField("Message text:", "test message", 160,
TextField.ANY);
binary_cg = new ChoiceGroup(null, Choice.MULTIPLE, binary_str, null);
display = Display.getDisplay(this);
messageForm = new Form("SMS_send");
mainForm = new Form("SMS_send");
exitCommand = new Command("Exit", Command.EXIT, 0);
backCommand = new Command("Back", Command.BACK, 0);
sendCommand = new Command("Send", Command.ITEM, 1);
mainForm.append(address_tf);
mainForm.append(port_tf);
mainForm.append(message_text_tf);
mainForm.append(binary_cg);
mainForm.addCommand(exitCommand);
mainForm.addCommand(sendCommand);
mainForm.setCommandListener(this);
messageForm.addCommand(backCommand);
DRAFT - Subject to Change
[164/201]

Advertisement

Table of Contents
loading

Table of Contents