0

I am using following code to open Application settings, but I need to open Notification center from my application.Is it possible to open Notification center from the application? If so, Please guide a way to do so.

Intent intent = new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
intent.setData(Uri.parse("package:" + getPackageName()));
startActivity(intent);

enter image description here

ישו אוהב אותך
  • 28,609
  • 11
  • 78
  • 96
dev90
  • 7,187
  • 15
  • 80
  • 153
  • Possible duplicate of [Redirect to Notification Access Settings](http://stackoverflow.com/questions/22663359/redirect-to-notification-access-settings) – Ankita Shah Jan 18 '17 at 10:42

1 Answers1

1

Try this one:

Settings.ACTION_NOTIFICATION_LISTENER_SETTINGS

Documentation says (link):

Activity Action: Show Notification listener settings.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Bugdr0id
  • 2,962
  • 6
  • 35
  • 59