Reworked android startup code on emulator