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.
问问题
1127 次
1 回答
3
扩展 David 的自我回答:要启动并运行,电话号码选项不是严格要求的(取决于您想要做什么)。如果您正确设置了短信端口,您可以在发送短信时使用任何电话号码,它将转到另一个模拟器。
对于任何像我一样盲目复制粘贴的人,请注意额外的空格。所以这两个命令可能是:
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 调试配置设置向导自动生成的命令行。
于 2011-03-01T07:27:00.043 回答