In android, is there a way to determine whether an emulator or a phone is being used at runtime?
The reason: I ask because I am using opengl in my app, which doesn’t work on the emulator. So I would like to be able to shut opengl down automatically (or never start it up) when an emulator is used so I can still test the other parts of my app on the emulator.
1 Answer