Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ringtone : MMS/EMS/SMS, I am confused

 
Ould Nadif
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ould Nadif
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ould Nadif
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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").
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Lasse for the clarification.
 
Ould Nadif
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic