简体   繁体   中英

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

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

platformRequest("mms://");

If I want to specify the number, 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 ...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM