I cant belive it. This is so stupid. According to this thread Problems understanding the life cycle when screen goes off and on you have to add
<activity ... android:configChanges="orientation" ... >
so the app wont be rotated and then destroyed when you will turn screen off.