public int unBindPluginService(DLIntent dlIntent, ServiceConnection conn) {
   if (mFrom == DLConstants.FROM_EXTERNAL) {
     if (dlIntent.getPluginPackage() == null)
       dlIntent.setPluginPackage(mPluginPackage.packageName);
   }
   return mPluginManager.unBindPluginService(that, dlIntent, conn);
 }
 public int stopPluginService(DLIntent dlIntent) {
   if (mFrom == DLConstants.FROM_EXTERNAL) {
     if (dlIntent.getPluginPackage() == null) {
       dlIntent.setPluginPackage(mPluginPackage.packageName);
     }
   }
   return mPluginManager.stopPluginService(that, dlIntent);
 }
 /**
  * @param dlIntent
  * @return may be {@link #START_RESULT_SUCCESS}, {@link #START_RESULT_NO_PKG}, {@link
  *     #START_RESULT_NO_CLASS}, {@link #START_RESULT_TYPE_ERROR}
  */
 public int startPluginActivityForResult(DLIntent dlIntent, int requestCode) {
   if (mFrom == DLConstants.FROM_EXTERNAL) {
     if (dlIntent.getPluginPackage() == null) {
       dlIntent.setPluginPackage(mPluginPackage.packageName);
     }
   }
   return mPluginManager.startPluginActivityForResult(that, dlIntent, requestCode);
 }
  @Override
  public void onCreate(Bundle savedInstanceState) {
    if (savedInstanceState != null) {
      mFrom = savedInstanceState.getInt(DLConstants.FROM, DLConstants.FROM_INTERNAL);
    }
    if (mFrom == DLConstants.FROM_INTERNAL) {
      super.onCreate(savedInstanceState);
      mProxyActivity = this;
      that = mProxyActivity;
    }

    mPluginManager = DLPluginManager.getInstance(that);
    Log.d(
        TAG,
        "onCreate: from= "
            + (mFrom == DLConstants.FROM_INTERNAL ? "DLConstants.FROM_INTERNAL" : "FROM_EXTERNAL"));
  }