Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

J2ME MIDP Ringtone composer application/midlet

Posted on 2004-03-23
5
Medium Priority
?
3,302 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 

Accepted Solution

by:
petrrrr earned 500 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 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).
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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.
The Summer 2017 Scholarship Winners have been announced!
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…
Suggested Courses

636 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