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

          }
        });
  }
 private void updateHeaderCartDetails() {
   super.updateHeaderCartDetails(_headerCartDetailsBT, welcomeUser);
 }
 @Override
 protected void onPause() {
   db.close();
   super.onPause();
 }
  public void easyGo(View v) {

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