handleLostContext for Android&Web only