private void init() {
   IntentFilter filter = new IntentFilter("data.broadcast.action");
   registerReceiver(broadcastReceiver, filter);
   progressBar = (ProgressBar) findViewById(Res.getWidgetID("showallphoto_progressbar"));
   progressBar.setVisibility(View.GONE);
   gridView = (GridView) findViewById(Res.getWidgetID("showallphoto_myGrid"));
   gridImageAdapter = new AlbumGridViewAdapter(this, dataList, Bimp.tempSelectBitmap);
   gridView.setAdapter(gridImageAdapter);
   okButton = (Button) findViewById(Res.getWidgetID("showallphoto_ok_button"));
 }
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    requestWindowFeature(Window.FEATURE_NO_TITLE);

    setContentView(Res.getLayoutID("plugin_camera_show_all_photo"));
    PublicWay.activityList.add(this);
    mContext = this;
    // back = (Button) findViewById(Res.getWidgetID("showallphoto_back"));
    // cancel = (Button)
    // findViewById(Res.getWidgetID("showallphoto_cancel"));
    preview = (Button) findViewById(Res.getWidgetID("showallphoto_preview"));
    okButton = (Button) findViewById(Res.getWidgetID("showallphoto_ok_button"));
    // headTitle = (TextView)
    // findViewById(Res.getWidgetID("showallphoto_headtitle"));

    WindowManager vmManager = this.getWindowManager();
    int width = vmManager.getDefaultDisplay().getWidth();
    int height = vmManager.getDefaultDisplay().getHeight();

    titleHeight = (int) height * 1 / 12;

    this.intent = getIntent();
    String folderName = intent.getStringExtra("folderName");
    if (folderName.length() > 8) {
      folderName = folderName.substring(0, 9) + "...";
    }

    showallimage_titleView = (TitleView_Text) findViewById(R.id.id_showallimage_title);

    showallimage_titleView.setTitle(folderName);

    showallimage_titleView.setLayoutParams(WindowManager.LayoutParams.MATCH_PARENT, titleHeight);

    showallimage_titleView.setTextLeftButton(
        "相册",
        new OnTextLeftButtonClickListener() {

          @Override
          public void onClick(View TextView) {
            // TODO Auto-generated method stub
            intent.setClass(ShowAllPhotoCampaignerActivity.this, ImageFileCampaignerActivity.class);
            startActivity(intent);
          }
        });

    showallimage_titleView.setTextRightButton(
        "取消",
        new OnTextRightButtonClickListener() {

          @Override
          public void onClick(View TextView) {
            // TODO Auto-generated method stub
            Intent intent = new Intent();
            intent.setClass(mContext, AlbumCampaignerActivity.class);
            startActivity(intent);
            finish();
          }
        });

    // headTitle.setText(folderName);
    // cancel.setOnClickListener(new CancelListener());
    // back.setOnClickListener(new BackListener(intent));
    preview.setOnClickListener(new PreviewListener());
    init();
    initListener();
    isShowOkBt();
  }