开发者

send sms between two simulator in blackberry

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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜