J2ME 中是否有用于发送 MMS 的通用应用程序 ID?

发布于 2024-07-08 06:22:39 字数 510 浏览 8 评论 0原文

我遇到了这个问题。

问题是,当我使用 J2ME 将彩信发送到另一台使用 JSR 205 的设备(已测试的两个设备:SonyEriccson w610i 和诺基亚 5300)时,接收图标会闪烁,但该消息不在收件箱文件夹中。 我认为发生这种情况是因为应用程序 ID - 可能无法识别 - 那么,是否有通用应用程序 ID - 或其他方式 - 在 J2ME 中发送彩信? 因为我不想在每台设备上安装查看器(以接收消息)。

我使用的代码与您在网络上可以找到的代码相同:打开 MessageConnection,创建 MultipartMessage,设置地址 (mms://{number}:{appID}),添加 MessagePart 并将其踢出。

顺便说一句,当我将其发送到没有 JSR 205 的设备(旧的 SonyEriccson)时,它会被接收; 但话又说回来,并非所有人们发送彩信的设备都那么旧。

最后,运营商是 Telcel(墨西哥)。 我不知道这是否与此有关,但也许有。

提前致谢。

I'm having problems with this.

The thing is that when I send an MMS with J2ME to another devices with JSR 205 (two tested: SonyEriccson w610i and Nokia 5300), a receiving icon flashes, but the message is not in the inbox folder. I think this happens because of the application ID -which may not be recognized-, so, is there a universal application ID -or another way- for sending MMSs in J2ME? Because I don't want to install a viewer (to receive the messages) on every single device.

The code I use is the same you can find all over the web: Open MessageConnection, create MultipartMessage, set address (mms://{number}:{appID}), add MessagePart and kick it out.

By the way, when I send it to a device without JSR 205 (an old SonyEriccson), it is received; But then again, not all the devices people will be sending MMSs may be that old.

And finally, the carrier is Telcel (Mexico). I don't know if this has something to do with it, but maybe.

Thanks in advance.

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

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

发布评论

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

评论(1

丑疤怪 2024-07-15 06:22:39

这很神奇:

//String address = "mms://"+ number +":"+ appID;
String address = "mms://"+ number;

现在每个手机都在接收消息。 但我不知道这样发送消息是否正确,也许未来的版本可能会抱怨。

This makes the magic:

//String address = "mms://"+ number +":"+ appID;
String address = "mms://"+ number;

Every mobile is receiving the message now. But I don't know if it's correct sending messages like this, maybe future versions could complain.

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