I am testing a Blackberry application that sends SMS messages. I would like to use the simulator for testing, but since SMS does not work on the simulator, I would like to have an alternative code path to handle the interaction. What is the correct way to detect that an application is running under a simulator instead of a real device?
source
share