Solved

J2ME MIDP Ringtone composer application/midlet

Posted on 2004-03-23
5
3,237 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

I'm Dumb-phoned(ed) Last week, I noticed this message when adding events to my Google Calendar: On June 27th (2015), Google is removing SMS as a notification option for Google Calendar events.  Their assumption is that enough people have smart p…
Today sees the launch of a new case study, focusing on BYOD technologies we have been working with for some time now.  But with the advent of 802.11ac wireless technologies and the story behind our landmark developments, we would like to share this …
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…

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now