Exemplo n.º 1
0
Arquivo: Main.java Projeto: hsbp/urc
 /** Called when the activity is first created. */
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.main);
   sender = new Sender();
   sender.start();
   attachEventHandlers();
 }
Exemplo n.º 2
0
Arquivo: Main.java Projeto: hsbp/urc
 public void setTarget(View v) {
   EditText et = (EditText) findViewById(R.id.target);
   sender.setAddress(et.getText().toString());
 }