首页 > 解决方案 > 以编程方式打开 Android 通知

问题描述

是否有可能在我的应用程序中打开通知菜单?我正在寻找类似于以下打开系统设置侧栏的解决方案:

startActivityForResult(new Intent(android.provider.Settings.ACTION_SETTINGS), 0);

标签: androidandroid-notificationsandroid-tv

解决方案


我找到了解决方案,看起来下面的示例可以完成工作。但是我找不到任何关于com.android.tv.NOTIFICATIONS_PANEL操作的文档。

Intent notificationIntent = new Intent("com.android.tv.NOTIFICATIONS_PANEL");
startActivity(notificationIntent);

推荐阅读