在黑莓中的两个模拟器之间发送短信

发布于 2024-09-28 21:45:26 字数 212 浏览 6 评论 0原文

我想向多个联系人发送短信。我编写了代码并且运行良好,但我想在两个模拟器之间进行测试。我在很多论坛中看到了解决方案,包括StackOverflow,但我无法使其工作。

I want to send SMS to multiple contacts. I wrote the code and it works fine, but I want to test between two simulators. I saw the solution in plenty of forums, including StackOverflow, but I am not able to make it work.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烟花易冷人易散 2024-10-05 21:45:26

扩展大卫的自我回答:要启动并运行它,电话号码选项并不是严格必需的(取决于您想要做什么)。如果您正确设置短信端口,则在发送短信时可以使用任何电话号码,并且短信将发送到其他模拟器。

对于像我一样盲目复制粘贴的人,请注意多余的空格。所以这 2 个命令可能是:

fledge.exe /handheld=8300 /session=8300 /app-param=DisableRegistration /app-param=JvmAlxConfigFile:8300.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000A /sms-source-port=5000 /sms-destination-port=5001 /app=jvm.dll
fledge.exe /handheld=8800 /session=8800/app-param=DisableResistration /app-param=JvmAlxConfigFile:8800.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000A /sms-source-port=5001 /sms-destination-port=5000 /app=jvm.dll

我发现 DisableRegistration 参数加快了启动时间,并使 MDS 功能正常工作(至少对于 1 个模拟器运行而言) - ymmv

另外,为了在 eclipse 中调试时执行此操作,我有发现其他问题。我的设置是从命令行运行一个模拟器,然后从 eclipse 运行一个模拟器。确保您的命令行模拟器使用与 Eclipse 副本相同的“fledge.exe”副本和相同的 jvm。就我而言,我安装了 2 个不同的 BB 插件,并且模拟器不会相互通信。因此,请使用上述想法,但将完整的命令行基于 eclipse 调试配置设置向导自动生成的命令行。

To expand on David's self-answer: To get this up and running, the phone number options are not strictly required (depending on what you want to do). If you set the sms ports correctly, you can use any phone number when sending the sms and it will go to the other emulator.

And to anyone blindly copying n pasting like I did, watch out for the extra spaces. So the 2 commands could be:

fledge.exe /handheld=8300 /session=8300 /app-param=DisableRegistration /app-param=JvmAlxConfigFile:8300.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000A /sms-source-port=5000 /sms-destination-port=5001 /app=jvm.dll
fledge.exe /handheld=8800 /session=8800/app-param=DisableResistration /app-param=JvmAlxConfigFile:8800.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000A /sms-source-port=5001 /sms-destination-port=5000 /app=jvm.dll

I have found the DisableRegistration parameter speeds up the start-up time, and makes the MDS functionality work properly (at least for 1 emulator running) - ymmv

Additionally, to do this while debugging in eclipse, I have found other problems. My setup was to run one simulator from command-line, and one from eclipse. Make sure your command-line simulator is using the same copy of "fledge.exe" and the same jvm as your eclipse copy. In my case I had 2 different installations of the BB plugin, and the simulators would not talk to each other. So use the above idea, but base the full command lines on the ones that are auto-generated by the eclipse debug config setup wizard.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文