title: How auto-run an app when I unlock the device
body: <p>I want create an app that works like that:</p>
  
  <p>When I take my device, I will unlock it and this app will be alredy opened. Then this app will show a compromise term of use the tablet. There will be two options, allow or refuse. If I choose allow, the app will finish; when I choose refuse, nothing happens until I choose allow.</p>
  
  <p>Then, after I use my device, it will lock, then... I will unlock, and the app will be there again!</p>
  
  <p>How can I put this app to auto-run when I unlock the device?</p>