Example #1
0
 @Override
 public void onWindowFocusChanged(boolean hasFocus) {
   super.onWindowFocusChanged(hasFocus);
   while (!flag) {
     initWedget();
     flag = true;
   }
 }
Example #2
0
  @Override
  protected void onCreate(Bundle arg0) {
    // TODO Auto-generated method stub
    super.onCreate(arg0);
    setContentView(R.layout.route);

    mHandler = new RouteHandler(this);
    ActionBar actionBar = getSupportActionBar();
    actionBar.setTitle(getString(R.string.route));
    actionBar.setDisplayHomeAsUpEnabled(true);
    actionBar.setHomeButtonEnabled(true);
  }
Example #3
0
  @Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    // TODO Auto-generated method stub
    super.onActivityResult(requestCode, resultCode, data);
    if (resultCode == RESULT_OK && data != null) {
      switch (requestCode) {
        case Const.REQUESTCODE_ROUTE_START:
          // #debug debug
          System.out.println("requestCode == 起点");
          startText.setText(getString(R.string.point_on_map));
          startPoint = (GeoPoint) (data.getParcelableExtra("geoPoint"));
          break;
        case Const.REQUESTCODE_ROUTE_END:
          // #debug debug
          System.out.println("requestCode == 终点");
          endText.setText(getString(R.string.point_on_map));
          endPoint = (GeoPoint) (data.getParcelableExtra("geoPoint"));
          break;

        default:
          break;
      }
    }
  }
Example #4
0
 @Override
 protected void onStart() {
   // TODO Auto-generated method stub
   super.onStart();
 }