This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes Ringtone Composer Midlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Ringtone Composer Midlet" Watch "Ringtone Composer Midlet" New topic
Author

Ringtone Composer Midlet

Ritesh Agrawal
Ranch Hand

Joined: Jan 08, 2004
Posts: 74
Hi All,
Is is possible to code a Midlet which can be used as a ringtone composer application in a mobile handset. For example, Nokia 3310 has a ringtone composer for it. But many new mobile phones like Nokia 3100 which are Java enables don't have a ringtone composer. I want to develop a ringtone composer application for such mobile handsets. Any ideas.

Thanks
Ritesh


Ritesh<br /> <br />SCJP 1.4<br />IBM Test 340<br />IBM AIX V4.0 Certified Professional<br /> <br />Right actions for the future are the best apologies for wrong ones in the past.<br />- Tyron Edwards
Orika Akawana
Ranch Hand

Joined: Mar 22, 2004
Posts: 36
there is no problem to read and write MIDI files. But you should implement reader writer by your self (belive me it is not so hard, just take a look on midi format).
When you will finish this part you will have 90% of your application. :*


I am not really coming from the outer space. I am mentally diverged. <br />Are you mentally diverged too, my friend?<br />(c)"12 Monkeys"
Ould Nadif
Ranch Hand

Joined: Jan 21, 2004
Posts: 184
Hi,
I didn't all caugth.
To read a midi file I can because I use MMAPI (it's easy ).If you can configure this file as ringtone I will very interested by your solution.
Mo,


We are ones that build the world, thus build it well.
Orika Akawana
Ranch Hand

Joined: Mar 22, 2004
Posts: 36
1. You have midi (ringtone) format description
2. You have Input/Output Stream
3. You read/write format
+ Many new phones play midi as a ringtone
I can't post the source because it is a part of non opensource project. But belive me, you can do it
Ould Nadif
Ranch Hand

Joined: Jan 21, 2004
Posts: 184
Hum....interesting
I would like to be concret:
1. You have midi (ringtone) format description:
example: I have a midi file like resourses on my device example : res/madonna.mid
How can I to tranform this format to ringtone format
2. You have Input/Output Stream
Input/Output are stream, where area will you write the file or data on the device to be a ringtone
3. You read/write format
so far, I know read a midi file and I can save it in the RMS store. I can't configure it like ringtone.

Give more details please.
Orika Akawana
Ranch Hand

Joined: Mar 22, 2004
Posts: 36
1. The question was not about transformig, but about read/write.
2.3. I can't tell ya )) That's the point! Think OULD think
Ritesh Agrawal
Ranch Hand

Joined: Jan 08, 2004
Posts: 74
Thanks , I guess I got enough ideas to start. I also got some material at the following site, may be those of you interested can have a look at this url at the Sun's Site The J2ME Mobile Media API . It provides some code examples too which I found useful.

cheers
Ritesh
Orika Akawana
Ranch Hand

Joined: Mar 22, 2004
Posts: 36
this api will be not usefull for your task You can only play a media file with it.
Ould Nadif
Ranch Hand

Joined: Jan 21, 2004
Posts: 184
Hi Orika Akawana,
What humour , Thanks.
I developped a application J2ME. My application downloads a file midi from my server. Idealy I would like configure this midi file as a ringtone from my midlet(e.g from my device). But I have not a solution (J2ME) excpet to ask my server to do it.
I see It's not my day ....
OULD
Orika Akawana
Ranch Hand

Joined: Mar 22, 2004
Posts: 36
OULD mjau :roll: Excuse Orika kitty I really really really can't speak about this
selva rajan
Greenhorn

Joined: Feb 19, 2004
Posts: 6
Why don't u admit that u don't know!
Orika Akawana
Ranch Hand

Joined: Mar 22, 2004
Posts: 36
simple... because:
"I probable know many things, no one knows" /(c) Snatch
[ March 25, 2004: Message edited by: Orika Akawana ]
Ould Nadif
Ranch Hand

Joined: Jan 21, 2004
Posts: 184
Hi all,
Don't lost the mind of friendly of this forum. Stay cool.
"Vive le forum"
OULD
Orika Akawana
Ranch Hand

Joined: Mar 22, 2004
Posts: 36
:*)
Ritesh Agrawal
Ranch Hand

Joined: Jan 08, 2004
Posts: 74
Hi,
My mobile phine is a Nokia Series 40 device and I gathered that it doesn't supports MMAPI 1.0. So we rule out that possibility. Another question now is creating and storing the Ringtones. It's fine that I can create and save the MIDI file by using some IO techniques as specified by Orika. But here is what Nokia specifies "Small devices typically do not have disk drives or large volumes of available storage. Under J2ME and MIDP, there is no interface for reading or writing persistent files that will survive past the application´┐Żs lifetime or allow it to communicate with other applications. However, a mechanism called Record Management System (RMS) does provide a means for creating persistent data records that can be
retrieved by the same application later.". This means that even if I am able to create some midi files to be used as ringtones, I can not really set it as ringtone for my mobile. I can only access and play it within my midlet application. Please refer What's in MIDP 1.0: A Guide for Java (TM) Developers, Version 1.0, April 2, 2003. Any ideas Orika.
Thanks for all ya help.
Ritesh
Orika Akawana
Ranch Hand

Joined: Mar 22, 2004
Posts: 36
ooook... I have send you e-mail with the answer.
[ March 26, 2004: Message edited by: Orika Akawana ]
Ritesh Agrawal
Ranch Hand

Joined: Jan 08, 2004
Posts: 74
Thanks Orika for the mail. I surely thought you really knew the answer to that. Anyway, never mind. You just confirmed the only solution I had already thought of. But thats not what I was trying to achieve. That really doesn't solves the problem. Why would I bother to write such an application unnecessarily because I could better use the freely available Nokia PC Suite and my data cable to develop and load ringtones into my mobile handset. I was trying to remove the deficiency in my mobile.
Thanks anyway....
So it's decided that we can not really develop such a midlet appliation with current tools and API's provided by nokia.

Ritesh
Orika Akawana
Ranch Hand

Joined: Mar 22, 2004
Posts: 36
Ri: it really depends on management and your plans. such solution helps us to make money using operators... :kisses: (could admin pleeease add this smile )
selva rajan
Greenhorn

Joined: Feb 19, 2004
Posts: 6
There I told u !Don't bother with a guy who says he knows more than any of us.
Orika Akawana
Ranch Hand

Joined: Mar 22, 2004
Posts: 36
have I ? "any of us"... komisch You are the only person who have noted this...so, maybe "any" points only on You plus I answered the question to the Ritesh. (it was his question)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Ringtone Composer Midlet
 
Similar Threads
Getting handset model no. before installation.
Limitation of Nokia Series 60.
Open a word file from a midlet
Invalid Version
Ringtone/J2ME