Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
myraddin
Posts: 412
Registered: ‎09-12-2008
My Device: 9000 9810
Accepted Solution

Is there a field indicating that the platform is Simulator or the Device

Hi.

I am just wondering... Since I discovered some differences between how the application behaves on the Simulator versus on the Device itself, is there a flag, field or whatever which I could use to automagically swithc the behavior of my app ?

 

Thanks.



"Listen carefully, I shall say this only once"
Please use plain text.
Developer
RexDoug
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: Is there a field indicating that the platform is Simulator or the Device

DeviceInfo.isSimulator() returns true if the device is actually the simulator.
Please use plain text.
Developer
myraddin
Posts: 412
Registered: ‎09-12-2008
My Device: 9000 9810

Re: Is there a field indicating that the platform is Simulator or the Device

thx.


"Listen carefully, I shall say this only once"
Please use plain text.