[android] How can I detect when an Android application is running in the emulator?