Blackberry - setPayloadText doesn't work

梦想的初衷 提交于 2019-12-02 05:22:14

There is a bug that prevents the body of the text from being populated in certain OS versions. You can get around it by storing the contents of the message to the clipboard, and then injecting a paste operation after waiting a second or so for the SMS app to come up. A little dodgy, but it's about the only thing you can do in that situtation.

Alternatively, you can create your own send-text screen that does this for the user. You can take a look at http://supportforums.blackberry.com/t5/Java-Development/Different-ways-to-send-SMS-messages/ta-p/445070 which gives instruction on how to programmatically send the message. Note that if you do this method, you should use both, with one being a fallback method if the first fails.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!