title: Set specific App to ignore optimization by code in Android M
body: <p>In the new <code>Android M</code> build, the Battery Optimization feature will stop the app on certain condition to save battery, but for the <code>VOIP</code>apps that need to stay alive all the time, this feature cause troubles for the developer.</p>
  
  <p>Currently there is one way to bypass the optimization, which is set the app to ignore optimizations,but too many steps need to be done.</p>
  
  <p>My question is, is there a way to jump to ignore optimization page of specific App, and how can I know whether my app is excluded from optimization?</p>