[Android] Fixed the app crashing on rotation

Rotating the screen will restart the app with the new window/orientation. This change properly updates the activity/states pointer for the other non-window modules. This fixes issue #531.