Esempio n. 1
0
  protected void onCreate(Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    super.onCreate(savedInstanceState);
    setContentView(R.layout.listflavourandproducts);

    _headerCartDetailsBT = (Button) findViewById(R.id.shopping);
    welcomeUser = (TextView) findViewById(R.id.welcomeuser);

    super.updateHeaderCartDetails(_headerCartDetailsBT, welcomeUser);

    branch = (TextView) findViewById(R.id.storeInflavour);
    db = openOrCreateDatabase("EasyCake", MODE_PRIVATE, null);

    storeBranchIdsecond = getIntent().getExtras().getString("storeBranchId");
    storeBranchTEXTname = getIntent().getExtras().getString("storeBranchName");
    cityName = getIntent().getExtras().getString("cityName");
    cityStoreBranchname = cityName + ">>" + storeBranchTEXTname;

    branch.setText(cityStoreBranchname);

    flavourPopulate();
    flavour.setOnItemSelectedListener(
        new AdapterView.OnItemSelectedListener() {

          public void onItemSelected(AdapterView<?> arg0, View arg1, int pos, long arg3) {
            productPopulate(pos);
          }

          public void onNothingSelected(AdapterView<?> arg0) {
            // TODO Auto-generated method stub

          }
        });
  }
Esempio n. 2
0
 private void updateHeaderCartDetails() {
   super.updateHeaderCartDetails(_headerCartDetailsBT, welcomeUser);
 }
Esempio n. 3
0
 @Override
 protected void onPause() {
   db.close();
   super.onPause();
 }
Esempio n. 4
0
  public void easyGo(View v) {

    super.easyGo(v, this);
  }
Esempio n. 5
0
 @Override
 protected void onResume() {
   db = openOrCreateDatabase("EasyCake", MODE_PRIVATE, null);
   super.updateHeaderCartDetails(_headerCartDetailsBT, welcomeUser);
   super.onResume();
 }