Home Forum
Welcome, Guest
Username Password: Remember me

Runtime test for emulator / hardware?
(1 viewing) (1) Guest
Discussion related to creating Android software
  • Page:
  • 1

TOPIC: Runtime test for emulator / hardware?

Runtime test for emulator / hardware? 3 years, 3 months ago #111

Whats the best way for an app detect if its been started in the emulator or on real hardware? I'm thinking of things like the camera or networking normally going to "debug" mode if on the emulator but on real hardware using it physically.

Re:Runtime test for emulator / hardware? 3 years, 3 months ago #113

I'm not sure if there's an easy to use flag or anything (which would obviously be the best thing) but you could always check something such as the IMEI.
I assume that the IMEI will be null on the emulator?

Linkage
  • StephenL
  • OFFLINE
  • Freshman
  • Posts: 9
  • Karma: 0
Last Edit: 3 years, 3 months ago by StephenL.
  • Page:
  • 1
Time to create page: 0.13 seconds
Copyright © 2012 Android Academy. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.
 
Glossary
We have 30 guests online