Accessing the new Notification Settings in Android 4.3 through Code

后端 未结 2 1654
南旧
南旧 2020-12-30 11:16

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.

I am unable

2条回答
  •  孤城傲影
    2020-12-30 11:52

    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"));
    

提交回复
热议问题