android - 以编程方式打开 Android 通知
问题描述
是否有可能在我的应用程序中打开通知菜单?我正在寻找类似于以下打开系统设置侧栏的解决方案:
startActivityForResult(new Intent(android.provider.Settings.ACTION_SETTINGS), 0);
解决方案
我找到了解决方案,看起来下面的示例可以完成工作。但是我找不到任何关于com.android.tv.NOTIFICATIONS_PANEL操作的文档。
Intent notificationIntent = new Intent("com.android.tv.NOTIFICATIONS_PANEL");
startActivity(notificationIntent);
推荐阅读
- excel-formula - 处理列表 DataValidation 公式中的错误
- c++ - For循环中的while循环
- c# - .Net Core 3.1 带正文的DELETE请求Api集成测试
- firebase - 使用 Firestore 的 Firebase 免费帐户限制
- android - 互联网关闭时无法获得回调,然后应用程序在 NetworkCallback 内启动
- r - 是什么意思 ” \\。” 在 tidyr::separate 中?
- angular - ng build --prod 在 Azure CICD 管道中不起作用
- php - VueJS SPA 路由不适用于 Laravel
- python - 在 pandas 中为特定列绘制多行数据框
- reactjs - 反应 16.12.0。如何构建优化代码 ES2015?