private void initListener() {

    gridImageAdapter.setOnItemClickListener(
        new AlbumGridViewAdapter.OnItemClickListener() {
          public void onItemClick(
              final ToggleButton toggleButton, int position, boolean isChecked, Button button) {
            if (Bimp.tempSelectBitmap.size() >= PublicWay.num_campaigner && isChecked) {
              button.setVisibility(View.GONE);
              toggleButton.setChecked(false);
              Toast.makeText(
                      ShowAllPhotoCampaignerActivity.this, Res.getString("only_choose_num"), 200)
                  .show();
              return;
            }

            if (isChecked) {
              button.setVisibility(View.VISIBLE);
              Bimp.tempSelectBitmap.add(dataList.get(position));
              okButton.setText(
                  Res.getString("finish")
                      + "("
                      + Bimp.tempSelectBitmap.size()
                      + "/"
                      + PublicWay.num_campaigner
                      + ")");
            } else {
              button.setVisibility(View.GONE);
              Bimp.tempSelectBitmap.remove(dataList.get(position));
              okButton.setText(
                  Res.getString("finish")
                      + "("
                      + Bimp.tempSelectBitmap.size()
                      + "/"
                      + PublicWay.num_campaigner
                      + ")");
            }
            isShowOkBt();
          }
        });

    okButton.setOnClickListener(
        new View.OnClickListener() {

          @Override
          public void onClick(View v) {
            okButton.setClickable(false);
            // if (PublicWay.photoService != null) {
            // PublicWay.selectedDataList.addAll(Bimp.tempSelectBitmap);
            // Bimp.tempSelectBitmap.clear();
            // PublicWay.photoService.onActivityResult(0, -2,
            // intent);
            // }

            /*intent.setClass(mContext, Campaigner_PhotoGraph_Activity.class);
            startActivity(intent);*/

            // Intent intent = new Intent();
            // Bundle bundle = new Bundle();
            // bundle.putStringArrayList("selectedDataList",
            // selectedDataList);
            // intent.putExtras(bundle);
            // intent.setClass(ShowAllPhoto.this, UploadPhoto.class);
            // startActivity(intent);
            finish();
          }
        });
  }
 @Override
 public void onReceive(Context context, Intent intent) {
   // TODO Auto-generated method stub
   gridImageAdapter.notifyDataSetChanged();
 }