-3

Is it possible to create an event listener in application settings for permission? Kindly, refer to this image for clarification. Need an event listener so i will be able to trigger my dialog

Community
  • 1
  • 1
Kuro
  • 83
  • 2
  • 8

2 Answers2

0

There is no such callback in android for global settings change, but in your code you can check if you have permission to access certain resource before proceeding further. (app's target SDK is 23 or higher)

Check http://developer.android.com/training/permissions/requesting.html

Asking user for permission at runtime

enter image description here

Mandar
  • 1,006
  • 11
  • 28
  • Hello thanks for this information also if you guys got confused to my question you refer to this one http://stackoverflow.com/questions/32958449/android-marshmallow-callback-when-user-revokes-permissions-from-settings – Kuro Mar 30 '16 at 01:39
0

Hello thanks for this information also if you guys got confused to my question you can refer to this one Android Marshmallow Callback when user revokes permissions from settings ?

Community
  • 1
  • 1
Kuro
  • 83
  • 2
  • 8