code: private ShareTarget toShareTarget(ResolveInfo resolveInfo) {
          if (resolveInfo == null || resolveInfo.activityInfo == null) {
              return null;
          }
          ActivityInfo info = resolveInfo.activityInfo;
          ShareTarget target = new ShareTarget(info.loadLabel(mPackageManager), info.loadIcon(mPackageManager), null);
          target.packageName = info.packageName;
          target.className = info.name;
          return target;
      }
docs: 根据ResolveInfo生成ShareTarget
  
  @param resolveInfo ResolveInfo
  @return ShareTarget