lBtnClearLog = (Button) findViewById(R.id.btnFundClearLog);
lMessage = (EditText) findViewById(R.id.txfFundMessage);
lTarget = (EditText) findViewById(R.id.txfFundTarget);
lLog = (EditText) findViewById(R.id.lblFundLog);
lBtnSend.setOnClickListener(new OnClickListener() {
public void onClick(View aView) {
try {
JWC.sendText(lTarget.getText().toString(), lMessage.getText().toString());
} catch (WebSocketException ex) {
// TODO: handle exception
}
}
});
lBtnBroadcast.setOnClickListener(new OnClickListener() {
public void onClick(View aView) {
try {
JWC.broadcastText(lMessage.getText().toString());
} catch (WebSocketException ex) {
// TODO: handle exception
}
}
});
lBtnClearLog.setOnClickListener(new OnClickListener() {
public void onClick(View aView) {
lLog.setText("");
}
});