J2ME MIDP Ringtone composer application/midlet

Posted on 2004-03-23
Medium Priority
Last Modified: 2013-12-27
Hi All,
Is is possible to write a MIDLET application using MIDP 1.0 to create Ringtones for Nokia Series 40 mobile device. This midlet should be able to write SP-MIDI files which can be set as ringtones in the mobile device. If possible, can someone suggest how to go about it.

Thanks in advance for your help.
Question by:riteshagrawal

Accepted Solution

petrrrr earned 500 total points
ID: 10694014

Unfortunately it's impossible. Midlets run in a very secured sandbox, and cannot write data to anywhere else than records. And you cannot access these records outside the sandbox. It is almost (if not even totally) impossible to compose ringtones with midlet, because its quite hard and slow to write them on a computer! You can make ringtones and use them in midlets, but I remember that Nokia doesn't allow to play more than one channel at a time. I might remember this incorrectly though. You can play single tones with quite simple Sound-class.

Creating ringtones is quite complex. Quickly explained: The format is in binary form, so you need to construct the header and sound-data first in binary-data. Eg. Starting file: 00, selecting instument 6: 0110, starting song, part 1: 01 (the real format is much more complex). Then you need to combine those, and turn into a hexdecimal-form, eg. 0001 1001 => 19. For a 10 sec song, the output might look like: 19 02 AB C4 45 71 A2 31 18 B1. Then by using Nokias internal classes, you can play that tune. Unfortunately I can't remember all this exactly, I have the data and manuals on my home machine, and I'm currently at work. But you can find more info by going to http://forum.nokia.com and seraching for media api, sound and example-programs! :)

But the main point is, you cannot write ringtones for your phone, using a midlet! Find/download Nokia Data Suite from net (using google :), either version 3 or 5 has a ringrone composer, that you can use to compose tones! :)

Hopefully this helps a bit! :)

Author Comment

ID: 10710903

Thanks for your comments. I guess I now have a fair idea about the possibilties. I have a further question here. Can I compose the ringtone and send it thru sms from within the midlet using the Nokia Smart Messaging OTA method? This way I would be able to use my ringtones. I know it is not possible to create music with more than one channels but I am ok with 1 channel as long as the midlet works. I am not trying to achieve something best, but trying to maximise the use of available possibilities.

Thanks again for a helpful response.

LVL 15

Assisted Solution

jimmack earned 500 total points
ID: 10936616
Sorry to come to the party so late.  No, you can't send a ringtone SMS using the Wireless Messaging APIs.  This is because an SMS containing a ringtone needs to have the "port" set in the SMS User Data Header.  You can't set this from within a WMA message.

The only thing I can think of at the moment is that you write the ringtones you create to a server (using an HTTP connection) and then have the server send the SMS (or store the ringtone for download where possible).

Featured Post

We Need Your Input!

WatchGuard is currently running a beta program for our new macOS Host Sensor for our Threat Detection and Response service. We're looking for more macOS users to help provide insight and feedback to help us make the product even better. Please sign up for our beta program today!

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Adults who share images on social media aren’t the only ones who need to worry about their privacy. Our culture’s tendency to share every move and celebration affects the privacy of our children, too.
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question