(3)商品列表页返回键-1

(3)商品列表页返回键:
ImageList


 @Override
 public void onBackPressed() {
  Log.d(TAG, "onBackPressed()");
  
  Intent intent;
  Window window;
  View   view;
  switch(request_code){
   case Constants.CATEGORY_REQUEST:
    
    intent = new Intent(this, SecondCategoryActivity.class);
    window = CategoryActivityGroup.getInstance()
      .getLocalActivityManager().startActivity(
        SecondCategoryActivity.class.getSimpleName(), intent);
    view = window.getDecorView();
    CategoryActivityGroup.getInstance().setContentView(view);
    break;
    
   case Constants.SEARCH_REQUEST:
    intent = new Intent(this, SearchActivity.class);
    window = HomeActivityGroup.getInstance()
      .getLocalActivityManager().startActivity(
        SearchActivity.class.getSimpleName(), intent);
    view = window.getDecorView();
    HomeActivityGroup.getInstance().setContentView(view);
    break;
    
   case Constants.HOME_SEARCH_REQUEST:
    intent = new Intent(this, HomeActivity.class);
    window = HomeActivityGroup.getInstance()
      .getLocalActivityManager().startActivity(
        HomeActivity.class.getSimpleName(), intent);
    view = window.getDecorView();
    HomeActivityGroup.getInstance().setContentView(view);
    break;
  }

 }

你可能感兴趣的:((3)商品列表页返回键-1)