How can i make disable Notification in preference in android?(if the user do not like the see the notification but the notification still in the app) i already doing check Box in xml
<CheckBoxPreference
android:title="Disable Notification"
android:defaultValue="true"
android:key="checkbox"
android:summary="Check the Box"/>
but i do not know what is the code to disable Notification, Thank you in advance !
notificationManager.cancelAll()
....那就是通知管理器对象
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.