Esempio n. 1
0
  void gotoCheckinPage(CauseResult mCauseResult) {
    Log.i("gotoCheckinPage OrgId", String.valueOf(mCauseResult.getId()));
    Log.i("gotoCheckinPage BusId", String.valueOf(mSelectedBussResult.getId()));

    TabGroupActivity parentActivity = (TabGroupActivity) getParent();

    Bundle bundle = new Bundle();
    bundle.putSerializable("selected_cause", (Serializable) mCauseResult);
    bundle.putSerializable("selected_business", (Serializable) mSelectedBussResult);

    Intent intent = new Intent(getParent(), CheckinActivity.class);
    intent.putExtras(bundle);
    parentActivity.startChildActivity("Checkin", intent);

    removeDialog(0);
  }
Esempio n. 2
0
  public void onSearchCompleted(
      List<? extends Object> result, Searcher.SearchType type, String query) {

    /*BusinessSearchActivity mBusinessSearchActivity = new BusinessSearchActivity();
    		mBusinessSearchActivity.addBusinessActivity((List<BusinessResult>) result, query);
    */
    TabGroupActivity parentActivity = (TabGroupActivity) getParent();

    Bundle bundle = new Bundle();
    bundle.putSerializable("search_result", (Serializable) result);
    bundle.putString("search_query", query);

    mBusinessList = (List<BusinessResult>) result;

    Intent intent = new Intent(getParent(), BusinessSearchActivity.class);
    intent.putExtras(bundle);
    parentActivity.startChildActivity("BusinessSearch", intent);

    removeDialog(0);
    // isSearchedCalled = false;
  }