コード例 #1
0
 /**
  * 启动一个Activity,并且可以返回Result Code,通过代理Activity进行启动
  *
  * @param className
  */
 public boolean startActivityForResultByProxy(String className, int requestCode, Bundle bundle) {
   try {
     Intent intent =
         ProxyActionUtil.getInstance(getRealActivity())
             .getStartActivityIntent(mProxyActivity, this, mDexPath, className, bundle);
     mProxyActivity.startActivityForResult(intent, requestCode);
     return true;
   } catch (Exception e) {
     return false;
   }
 }
コード例 #2
0
 /**
  * /** 启动一个Activity,通过代理Activity进行启动
  *
  * @param className
  */
 public boolean startActivityByProxy(String className) {
   try {
     Intent intent =
         ProxyActionUtil.getInstance(getRealActivity())
             .getStartActivityIntent(mProxyActivity, this, mDexPath, className, null);
     mProxyActivity.startActivity(intent);
     return true;
   } catch (Exception e) {
     return false;
   }
 }