예제 #1
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    super.onCreate(savedInstanceState);
    setContentView(R.layout.offers);
    appStatus = AppStatus.getInstance(this);
    appName = appStatus.getSharedStringValue(appStatus.APP_NAME);
    setOffersTabHeader();
    this.onlyShowSupported = true;
    isOnPause = false;
    mhandler = new Handler();
    loading = new ProgressDialog(this);
    loading.setMessage("Loading...");
    loading.setCancelable(true);

    mListView = (ListView) findViewById(android.R.id.list);
    mListView.setOnItemClickListener(itemClick);
    setOnListScrollListener(mListView);
    parentActivity = this.getParent();
    txtViewTopRaisedMoney = (TextView) findViewById(R.id.textViewTopRaisedMoney);

    Log.v("######HEADS UP", "In onCreateView");
  }
예제 #2
0
  public void onResume() {

    txtViewTopRaisedMoney.setText(appStatus.setCheckinAmount());
    appStatus = AppStatus.getInstance(this);
    if (ViewOffersActivity.bIsFromSearch) {

      // strProgressMessage = "Loading....";
      strProgressMessage = getString(R.string.searchProgressMessage);
      showDialog(0);
      new SearchTask(this, ViewOffersActivity.offerSearch).execute(ViewOffersActivity.searchQuery);
      Log.v("######HEADS UP", "searching from view offers");
      ViewOffersActivity.bIsFromSearch = false;
    } else {
      /*
       * if (appStatus.getSharedBoolValue(appStatus.IS_APP_RESUMED)) {
       * refreshList();
       * appStatus.saveSharedBoolValue(appStatus.IS_APP_RESUMED, false); }
       * else { updateLocationView(null); }
       */
      if (!isSearchedCalled) refreshList();
    }

    super.onResume();
  }