title: Android: How to detect when settings were changed via Notification Pull Down Menu?
body: <p>In my app, I require NFC (though, anyone who requires GPS would also run into this). In my MainActivity, I check to make sure NFC is enabled in my <code>onResume</code> method.</p>
  
  <p>When someone pulls down the Notification bar, they could opt to change many settings at the very top including GPS and NFC. I was surprised to learn that the app does not call <code>onPause</code> when the notification menu is pulled down. By disabling NFC through the notification menu, the user is bypassing a layer of my app (at least temporarily).</p>
  
  <p>Is there any way to mitigate this? I suppose I could continuously check if NFC is on once every few seconds, but I think that is overkill.</p>
  
  <p>A very sketchy way of doing it would be to somehow hook into the fact that the screen dims as you pull down, and lightens back up as you push up the notification menu... That might just be my phone though. This is rather cumbersome.</p>