Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

How to tell if running in simulator/emulator

Anyone know how to do this? Couldn't find anything in the docs or forums.

— asked September 27th 2010 by Charles Davison
  • simulator
0 Comments

1 Answer

  • Accepted Answer

    Try something like this…..
    if (Titanium.Platform.model == 'google_sdk' || Titanium.Platform.model == 'Simulator') { //Whatever is unique to simulator }

    My previous answer is here.

    — answered September 27th 2010 by Mike Robinson
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.