@Override
 public void onClick(View view) {
   switch (view.getId()) {
     case R.id.aci_shared_btn:
       /*App分享*/
       CommonUtils.storeImageToSDCARD(this);
       CommonUtils.showShare(
           this,
           getString(R.string.app_name),
           "喜刷刷是一款可以边看新闻边抢红包的App",
           "http://dashboard.mob.com/Uploads/3d6cec44fbd284d5f1c0c59bb7a4a5f6.png",
           "http://www.pgyer.com/xishuashua");
       break;
     case R.id.index_image1:
       /*即时红包*/
       if (!CommonUtils.CheckLogin()) {
         Tools.toast(this, "请先登录");
         return;
       }
       getmemberinterests(0);
       break;
     case R.id.index_image2:
       /*永久红包*/
       if (!CommonUtils.CheckLogin()) {
         Tools.toast(this, "请先登录");
         return;
       }
       getmemberinterests(1);
       break;
     case R.id.index_image3:
       /*兴趣标签*/
       if (!CommonUtils.CheckLogin()) {
         Tools.toast(this, "请先登录");
         return;
       }
       getmemberinterests(2);
       break;
     case R.id.tv_index_gift:
       /*更多新闻*/
       startActivity(new Intent(this, IndexNewsActivity.class));
       break;
   }
 }
 // 退出操作
 public boolean onKeyDown(int keyCode, KeyEvent event) {
   CommonUtils.exitkey(keyCode, this);
   return super.onKeyDown(keyCode, event);
 }