Michael Donohue
Michael Donohue

Reputation: 11876

Is my app running on the Blackberry Simulator?

I am testing a blackberry app that sends SMS messages. I would like to use the simulator for testing, but since SMS doesn't work on the simulator I would like to have an alternate code path to handle the interaction. What is the right way to detect that the app is being run under a simulator, instead of an actual device?

Upvotes: 3

Views: 215

Answers (1)

Marc Novakowski
Marc Novakowski

Reputation: 45408

DeviceInfo.isSimulator()

Upvotes: 4

Related Questions