File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes Ringtone : MMS/EMS/SMS, I am confused Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Ringtone : MMS/EMS/SMS, I am confused" Watch "Ringtone : MMS/EMS/SMS, I am confused" New topic
Author

Ringtone : MMS/EMS/SMS, I am confused

Ould Nadif
Ranch Hand

Joined: Jan 21, 2004
Posts: 184
Hi all,

How send a midi file to my mobile so I'd like configure it like ringtone.
I though several ways:
1-I know, I can't use J2ME (because the JSR 75 is missed)
2-I tried to use the API WMA of J2ME. I send me a binary data (=my midi file). I received this message on my device (SX1 of siemens, N-Gage of Nokia, P400 of samsung and T630 of Ericsson), but any of these devices don't propose me to save this file on my phone.
here my code:
MessageConnection conn1 = null;
String url = "sms://0679...."; //my phone

try {

conn1 = (MessageConnection) Connector.open( url );
sendBinary( conn1, Buffer );
}
catch( Exception e ){
// handle errors
}
finally {
if( conn1 != null ){
try { conn1.close(); } catch( Exception e ){}
}
}

3- Do you know providers SMS/ MMS enable my device to receive the midi file like ringtone.

4- I know in the future with JSR 75 ou JSR 205 I could realise these.

Thank you for your help

OULD NADIF


We are ones that build the world, thus build it well.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17257
    
    6

Yes, unfortunately, I don't think you will be able to save your Midi file to your phone to be used as a ringtone, through J2ME.

One of the JTWI specs state that a J2ME application runs in the sandbox, and is restricted from getting to the actual devices system and storage. You can only get to the Address Book through a TextBox or TextField, and that is just so that the user can select a name, not even save a name.

Sorry.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Ould Nadif
Ranch Hand

Joined: Jan 21, 2004
Posts: 184
Hi Mark Spritzler,

I know that I can't save my file midi like ringtone on my phone through J2ME.

my hope is to do it from a server (with SMS or MMS) or other ie: my server send the midi file over the air and I hope that when my phone will receive that midi file, my phone(its OS ) propose me to install it like ringtone.

Thank you for your reply

OULD
Michael Yuan
author
Ranch Hand

Joined: Mar 07, 2002
Posts: 1427
Originally posted by OULD NADIF:
I know that I can't save my file midi like ringtone on my phone through J2ME.

my hope is to do it from a server (with SMS or MMS) or other ie: my server send the midi file over the air and I hope that when my phone will receive that midi file, my phone(its OS ) propose me to install it like ringtone.


Yes, you can do that. But that has nothing to do with J2ME. You can just send a message to your phone from any server via your wireless carrier.


Seam Framework: http://www.amazon.com/exec/obidos/ASIN/0137129394/mobileenterpr-20/
Ringful: http://www.ringful.com/
Ould Nadif
Ranch Hand

Joined: Jan 21, 2004
Posts: 184
Hi Michael Yuan,

Thank you Michael. Pleased to have you on this forum. I read few articles on the net (J2ME) about you. Thank you about all you bring our J2ME community.

About your reply I'd like have more precision:
You have said :
"Yes, you can do that. But that has nothing to do with J2ME. You can just send a message to your phone from any server via your wireless carrier.""

Could you give me some example to send a file midi to my mobile (WAP PUSH, MMS, BOOKMARK etc ...). I am not sure of SMS because I send me a binary SMS (file midi), i doens't work ?

What I need to make "BOOKMARK, WAS PUSH, MMS" plateform : API, Gateway, links to help me.

Thank you

OULD NADIF
Michael Yuan
author
Ranch Hand

Joined: Mar 07, 2002
Posts: 1427
Downloading ringtones from a WAP site is very easy: just make a static wml page with a link to that midi file. When you click it in your browser, you will be promoted to save it as ringtone. Ok, this is not push. But you can put the URL to the midi file in an SMS message and when the user opens the message, the device would automatically connects to the WAP server and ask you to save the file.

Sending MMS messages is a complicated business right now. There is an SOAP/XML based interface (MM7) to interact with MMSC from a PC but most carriers would not allow you to do it unless you pay them a million dollars.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17257
    
    6

but most carriers would not allow you to do it unless you pay them a million dollars


Wow, you paid a carrier a million dollars?

Mark
Michael Yuan
author
Ranch Hand

Joined: Mar 07, 2002
Posts: 1427
Originally posted by Mark Spritzler:
Wow, you paid a carrier a million dollars?


No, that is why I cannot have access to MMSC either. When I think about it, Nokia and Openwave both have developer programs that provide low cost (couple of thousand dollars) access to MMSCs of some carriers (Cingular and ATT, I think) for developers. But of course, you cannot use that for commercial depoyment.
Ould Nadif
Ranch Hand

Joined: Jan 21, 2004
Posts: 184
Hi all,

I think your solution can compliant for my business.
Michael you said:
"But you can put the URL to the midi file in an SMS message and when the user opens the message, the device would automatically connects to the WAP server and ask you to save the file."

What I need to implement this solution? : providers,operator, API.

Thanks you
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by OULD NADIF:
Michael you said:
"But you can put the URL to the midi file in an SMS message and when the user opens the message, the device would automatically connects to the WAP server and ask you to save the file."

What I need to implement this solution? : providers,operator, API.

I believe Michael was referring to a service indicator (SI) message, which is a combination of a URL (the service) and some metadata about the service such as expiration date, short description message, etc.

In order to send such a message, you need either your own SMS gateway which connects to one or more SMSCs (requires a legal contract) or a service provider which rents their SMS gateway and connections to you for pay. One of the most popular SMS service providers is SimpleWire but I'm not sure whether their API supports SI messages. Then again, Connection Software seems to support it (look for the section "To send a Service Indication Message").


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Michael Yuan
author
Ranch Hand

Joined: Mar 07, 2002
Posts: 1427
Thanks Lasse for the clarification.
Ould Nadif
Ranch Hand

Joined: Jan 21, 2004
Posts: 184
Thanks a lot Lasse and Michael for your help.

I visited "Connection Software" web site. I found a lot of information concerning my project. I did even some tests that are interesting.
When I realise all my test I'll propose to my company to work with "Connection Software" for the future.

OULD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ringtone : MMS/EMS/SMS, I am confused