Solved

J2ME MIDP Ringtone composer application/midlet

Posted on 2004-03-23
5
3,262 Views
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.
Ritesh
0
Comment
Question by:riteshagrawal
5 Comments
 

Accepted Solution

by:
petrrrr earned 125 total points
ID: 10694014
Hi!

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! :)
0
 
LVL 1

Author Comment

by:riteshagrawal
ID: 10710903
Hi,

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.

Ritesh
0
 
LVL 15

Assisted Solution

by:jimmack
jimmack earned 125 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).
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Need WiFi? Often, there are perfectly good networks that don't have WiFi capability - and there's a need to add it.  - Perhaps you have an Ethernet port into a network but no WiFi nearby. - Perhaps you have a powerline extender and no WiFi at the…
DECT technology has become a popular standard for wireless voice communication. DECT devices are not likely to be affected by other electronic devices and signals because they operate in a separate frequency-band.
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.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…

803 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