示例#1
0
文件: Main.java 项目: 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();
 }
示例#2
0
文件: Main.java 项目: hsbp/urc
 public void setTarget(View v) {
   EditText et = (EditText) findViewById(R.id.target);
   sender.setAddress(et.getText().toString());
 }