@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
class MyHandler extends Handler {
@Override
public void handleMessage(Message msg) {
super.handleMessage(msg);
int what=msg.what;
switch (what) {
case -1:
String info=msg.getData().get("info").toString();
TextView text=(TextView)findViewById(R.id.textView1);
text.setText(info);
break;
default:
break;
}
}
}