开发者

How to programmatically attach a file to the MMS Editor using J2ME?

开发者 https://www.devze.com 2023-02-11 03:38 出处:网络
In order to open the phone default MMS Editor in J2ME I use this code: platformRequest(\"mms://\"); If I want to specify the n开发者_运维问答umber, I do it like that:

In order to open the phone default MMS Editor in J2ME I use this code:

platformRequest("mms://");

If I want to specify the n开发者_运维问答umber, I do it like that:

platformRequest("mms://+123456789");

But I need to attach a file to this message (let's say E:\Videos\1.3gp), and i don't find anywhere how to add the file parameter. So the default MMS Editor has its video attached, and the user has to enter the number and subject and press send.

Thanks.


I've never heard of this method of sending MMS in J2ME. What platform does this work on?

The normal way of doing this is to use JSR 205.


See this link for sending MMS in J2ME. And for your more information see this link also. Dont use platformRequest() for sending MMS.


Well no way to do this, i made a workaround by making the user open the file using real player or whatever default player on the device using

Program.platformRequest("file:///....3gp");

then the user can have access to send the file using MMS by clicking options and send as provided in this default player ...

0

精彩评论

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

关注公众号