It turns out Android kills the Main activity but PlayerActivity is not killed. This rarely happens but when it does it keeps happening everytime I resume the app. It only goes back to normal if I close the app.
Here's the log:
Killing previous instance (main).
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
=== Wrong resume ===
** Activity (main) Pause, UserClosed = false **
** Activity (PlayerActivity) Resume **
in Main:
Sub Activity_Resume
If PlayerActivity.PlayerIsOpen Then
log("=== Wrong resume ===")
StartActivity(PlayerActivity)
End If
End Sub