title: Activity changes when lock screen
body: <p>[SOLVED]</p>
  
  <p>i got a question... When i lock my phone while my app is running, it changes automatically to the main activity (the one which is started at the beginning) when in unlock it.</p>
  
  <p>Anybody knows how to handle that the activity at the moment of locking stays?</p>
  
  <p>Thanks!</p>