Ejemplo n.º 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();
 }
Ejemplo n.º 2
0
 /**
  * start screen capture with no delay
  *
  * @param context
  * @param intent
  */
 public static void startPreviewActivity(Context context, Intent intent, int requestCode) {
   startPreviewActivity(context, intent, 0, requestCode);
 }