Ejemplo n.º 1
0
 @Override
 protected void onStart() {
   super.onStart();
   drone.events.addDroneListener(this);
   app.conectionListner = this;
   drone.MavClient.queryConnectionState();
 }
Ejemplo n.º 2
0
  @Override
  protected void onStart() {
    super.onStart();
    Intent i = new Intent().setClass(this, FoodService.class);
    stopService(i);
    Intent intent = getIntent();
    if (Intent.ACTION_VIEW.equals(intent.getAction())) {
      if (FoodProvider.buildUriMatcher().match(intent.getData()) == FoodProvider.CODE_FOOD) {
        Intent foodIntent = new Intent(Intent.ACTION_VIEW, intent.getData());
        startActivity(foodIntent);
      }
    } else if (Intent.ACTION_SEARCH.equals(intent.getAction())) {
      final String term = intent.getStringExtra(SearchManager.QUERY);

      Intent si = new Intent(this, SearchResultActivity.class);
      si.putExtra(SearchManager.QUERY, term);
      startActivity(si);
      finish();
    }
    GenericRateTheAppDialog rateAppDialog = GenericRateTheAppDialog.createInstance();
    rateAppDialog.showMaybe(getSupportFragmentManager(), this);
  }
 @Override
 public void onStart() {
   super.onStart();
 }