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