@@ -0,0 +1,831 @@
+package baidu.com.commontools.utils;%0A%0Aimport android.content.Context;%0Aimport android.content.Intent;%0Aimport android.content.pm.PackageManager;%0Aimport android.os.Build;%0Aimport android.provider.Settings;%0A%0Aimport androidx.annotation.NonNull;%0Aimport androidx.annotation.RequiresApi;%0A%0Apublic class IntentUtils %7B%0A%0A    public static boolean isActivityAvailable(@NonNull Context cxt, @NonNull Intent intent) %7B%0A        PackageManager manager = cxt.getPackageManager();%0A        return manager.queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY).size() %3E 0;%0A    %7D%0A%0A    @RequiresApi(api = Build.VERSION_CODES.O)%0A    public static Intent getJumpNotificationIntent(String packageName) %7B%0A        return new Intent(Settings.ACTION_APP_NOTIFICATION_SETTINGS)%0A                .putExtra(Settings.EXTRA_APP_PACKAGE, packageName);%0A    %7D%0A%7D%0A

add IntentUtils.