I need a function to detect whether the app is running on the simulator of 
the IDE (computer) instead of a mobile device.

The platform name is from the skin.
For example I get "ios", or "and".

This is not useful:
public static boolean isSimulator()
{
String os=Display.getInstance().getPlatformName();
System.out.println("os "+os);
if (!(
(os.toLowerCase().contains("ios"))||
(os.toLowerCase().contains("and"))
)) {return true;}
else {return false;}
}

How to detect the fact that the device is simulated?
Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/699f888d-8f94-4e8e-ab69-650671b1b77bn%40googlegroups.com.

Reply via email to