?
Solved

J2ME MIDP Ringtone composer application/midlet

Posted on 2004-03-23
5
Medium Priority
?
3,292 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

Optimum High-Definition Video Viewing and Control

The ATEN VM0404HA 4x4 4K HDMI Matrix Switch supports 4K resolutions of UHD (3840 x 2160) and DCI (4096 x 2160) with refresh rates of 30 Hz (4:4:4) and 60 Hz (4:2:0). It is ideal for applications where the routing of 4K digital signals is required.

Question has a verified solution.

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

Lithium-ion batteries area cornerstone of today's portable electronic devices, and even though they are relied upon heavily, their chemistry and origin are not of common knowledge. This article is about a device on which every smartphone, laptop, an…
For Sennheiser, comfort, quality and security are high priority areas. This paper addresses the security of Bluetooth technology and the supplementary security that Sennheiser’s Contact Center and Office (CC&O) headsets provide.  
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…

762 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