public static void shareMultipleFiles(final Context context, @NonNull final ArrayList<Uri> uris, @StringRes final int titleResourceId) {
        try {
            final Intent shareIntent = new Intent();
            shareIntent.setAction(Intent.ACTION_SEND_MULTIPLE);
            shareIntent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris);
            shareIntent.setType("*/*");
            shareInternal(context, shareIntent, titleResourceId);
        } catch (Exception e) {
            Log.e("error on sharing", e);
        }
    }
context needs to be filled only when file is not null
main/src/main/java/cgeo/geocaching/utils/ShareUtils.java