title: Android Marshmallow: permissions change for running app
body: <p>I know, with Android Marshmallow, we have to ask permissions every time we need a functionality that require a permission.</p>
  
  <p>I do this for new App, but for old BIG App is more complicated. </p>
  
  <p>For old BIG App, I ask all permissions in "MainActivity".</p>
  
  <p>So, my app is started and shows a Map Fragment. 
  I ask for Location Permission with no problem. The user agrees.</p>
  
  <p>The user puts it in background, goes in the App Settings and denies permission. 
  Then he puts the App in foreground: App crashes!!</p>
  
  <p>I know, there is a problem using Map Fragment.</p>
  
  <p>But the App is too BIG to analyze every single permission.</p>
  
  <p>I need the FAST solution: PERMISSION CHANGE ---> RESTART APP!!!</p>
  
  <p>And this is what GoogleMaps does! </p>
  
  <p>I started GoogleMaps, and put it in background. </p>
  
  <p>GoogleMaps App permissions, the first difference:</p>
  
  <p>in my App, if I denied a permission, I haven't this message showing for Google Maps:</p>
  
  <p><a href="http://i.stack.imgur.com/TWU74.png" rel="noreferrer">Permission denied</a></p>
  
  <p>After that, if I put GoogleMaps in foreground, the App restart with no problem:</p>
  
  <p><a href="http://i.stack.imgur.com/x6ldK.png" rel="noreferrer">GoogleMaps restart</a></p>
  
  <p>I need this for my app. Can someone help me?!?!?!?</p>
  
  <p>Thanks a lot!!</p>