如何通过代码访问它?所以我可以自动为用户打开它,他们不必通过安全设置来启用它。
我无法在 Android Studio 中使用 startActivity(new Intent(Settings.<>)); 找到它,其中 <> 是设置屏幕列表。
图片由 Android Police 提供
Best Answer-推荐答案 strong>
有an outstanding bug在 Android 4.3 中,通知监听器屏幕操作未在 Settings 中列出。目前的解决方法是:
startActivity(new Intent("android.settings.ACTION_NOTIFICATION_LISTENER_SETTINGS"));
关于android - 通过代码访问 Android 4.3 中的新通知设置,我们在Stack Overflow上找到一个类似的问题:
https://stackoverflow.com/questions/18212209/
|