0

How would you create a broadcast receiver for when there is a change in your app's permissions?

swrap
  • 314
  • 1
  • 3
  • 11
  • broadcast receiver do not need Permission – Cgx Jul 15 '16 at 02:09
  • Why do you need to listen for a change? – nukeforum Jul 15 '16 at 02:12
  • Possible duplicate of [Android: BroadcastReceiver](http://stackoverflow.com/questions/5652472/android-broadcastreceiver) – karan Jul 15 '16 at 04:59
  • No I did not know that the application was restarted on app permission change. I thought that a user could be in the app and then change permission without the app realizing what changes took place. – swrap Jul 16 '16 at 00:40

1 Answers1

1

You cannot create a BroadcastReceiver for App permissions since there is no broadcast. As soon as there is a permission change, the app is restarted.

EDIT: You can check for permissions yourselves by following this.

Community
  • 1
  • 1
Harsh Pandey
  • 831
  • 7
  • 12
  • Thanks! I know how to check for permissions, but I did not know that the app was restarted on permission change! – swrap Jul 16 '16 at 00:39