Example #1
0
 /** 更具类打开acitvity,并携带参数 */
 public void openActivity(Class<?> pClass, Bundle pBundle, int requestCode) {
   Intent intent = new Intent(this, pClass);
   if (pBundle != null) {
     intent.putExtras(pBundle);
   }
   if (requestCode == 0) {
     IntentUtils.startPreviewActivity(this, intent);
     // startActivity(intent);
   } else {
     IntentUtils.startPreviewActivity(this, intent, requestCode);
     // startActivityForResult(intent, requestCode);
   }
   // actityAnim();
 }