package com.ads.cal.picturetranslate;

import android.app.Activity;
import android.content.Intent;

public class PermissionUtil {

    /**
     * 打开系统图片选择器（使用 ACTION_GET_CONTENT，无需存储权限）
     *
     * @param activity    当前 Activity
     * @param requestCode 请求码，用于 onActivityResult 回调
     */
    public static void toSystemPhoto(Activity activity, int requestCode) {
        Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
        intent.setType("image/*");
        intent.addCategory(Intent.CATEGORY_OPENABLE);
        activity.startActivityForResult(intent, requestCode);
    }

}
