Android Lollipop应用程式通知设定
问题描述:
在Android Lollipop中,长按通知时,它可以让您访问该通知应用程序的设置,例如优先级,或者只是阻止它。我有意图使用这些设置吗?
In Android Lollipop, when you long press a Notification, it gives you access to settings for that Notification's app, such as priority, or simply blocking it. Is there an intent that I can use to access those settings?
答
在这里找到答案- https://plus.google.com/+CyrilMottier/posts/YY6tbJrJMra
您需要将此添加到要附加到该设置图标的活动中
You need to add this to the activity you want to be attached to that settings icon
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.NOTIFICATION_PREFERENCES" />
</intent-filter>