通过code访问中的Android 4.3新的通知设置 [英] Accessing the new Notification Settings in Android 4.3 through Code
本文介绍了通过code访问中的Android 4.3新的通知设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何可以访问这个通过code?因此,我可以自动打开它为用户和他们没有通过安全设置打猎启用它。
How can I access this through code? So I can open it for the users automatically and they don't have to hunt through the Security settings to enable it.
我无法使用 startActivity找到它在Android的工作室(新意图(设置<>));
,其中<>是一个设置列表屏幕。
I am unable to find it in Android Studio using startActivity(new Intent(Settings.<>));
, where <> is the list of setting screens.
图片来源:Android的警察
Image courtesy of Android Police
推荐答案
有一个优秀的错误在安卓4.3,其中通知侦听器屏幕上的动作是不是在列设置
。目前的解决方法是:
There is an outstanding bug in Android 4.3 where the notification listener screen action is not listed in Settings
. The current workaround is:
startActivity(new Intent("android.settings.ACTION_NOTIFICATION_LISTENER_SETTINGS"));
这篇关于通过code访问中的Android 4.3新的通知设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文