How to add a notification settings activity to the system settings

前端 未结 2 1442
清歌不尽
清歌不尽 2020-12-15 07:37

On Android 5.0 there is an option through Settings -> Sound & notification -> App notification -> Calendar (for example) to go directly to the noti

2条回答
  •  情深已故
    2020-12-15 08:21

    You need to add the Intent category Notification.INTENT_CATEGORY_NOTIFICATION_PREFERENCES to the Activity you'd like to launch through your AndroidManifest. A simple example would be something like:

        
    
            
                
                
            
        
    

    For more information, refer to the Settings app and specifically the NotificationAppList and AppNotificationSettings fragments.

    Results

    example

提交回复
热议问题