title: What is Android "optimising" during restarts?
body: <p>First question, appreciate some guidance.  I am currently teaching myself to develop for Android and have installed my app (via Studio after builds) onto my own phone.</p>
  
  <p>Every now and then my phone will restart itself (not querying that - these things happen).</p>
  
  <p>During these (occasional) restarts I will get a message that Android is "Optimising App 1 of 1".  I am pretty sure it is my app being "optimised".</p>
  
  <p>I have searched here and the Web.  Most of the questions seem to be users that have recently upgraded OS Version and that is causing the issue.  There seems to be anecdotal evidence that wiping the cache cures this and that it only does it while the device is being charged.</p>
  
  <p>However, if it is my app, I don't want users of my to go through this.  I suspect it relates to the Target SDK I am using but it might be something different?</p>
  
  <p>So, what is Android optimising?  How can I make best efforts to stop my app being the cause of this?</p>
  
  <p>Many thanks.</p>