【发布时间】:2021-01-24 02:06:35
【问题描述】:
我需要知道手机上安装的包何时可以发送通知 这里是读取手机上的应用程序的代码,我需要知道它是否通过 NotificationManagerCompat (areNotificationsEnabled ()) 启用了通知
List<String> paquetenombre = new ArrayList<>();
Intent intent = new Intent(Intent.ACTION_MAIN,null);
intent.addCategory(Intent.CATEGORY_APP_MESSAGING);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED );
List<ResolveInfo> resolveInfoList = context1.getPackageManager().queryIntentActivities(intent,0);
,提前致谢
【问题讨论】:
标签: android android-intent notifications android-notifications android-context