Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在测试一个发送 SMS 消息的黑莓应用程序。我想使用模拟器进行测试,但由于 SMS 在模拟器上不起作用,我希望有一个备用代码路径来处理交互。检测应用程序在模拟器而不是实际设备下运行的正确方法是什么?
DeviceInfo.isSimulator()