Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ringtone Composer Midlet

 
Ritesh Agrawal
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Orika Akawana
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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. :*
 
Ould Nadif
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
 
Orika Akawana
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this api will be not usefull for your task You can only play a media file with it.
 
Ould Nadif
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OULD mjau :roll: Excuse Orika kitty I really really really can't speak about this
 
selva rajan
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why don't u admit that u don't know!
 
Orika Akawana
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
simple... because:
"I probable know many things, no one knows" /(c) Snatch
[ March 25, 2004: Message edited by: Orika Akawana ]
 
Ould Nadif
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Don't lost the mind of friendly of this forum. Stay cool.
"Vive le forum"
OULD
 
Orika Akawana
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
:*)
 
Ritesh Agrawal
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ooook... I have send you e-mail with the answer.
[ March 26, 2004: Message edited by: Orika Akawana ]
 
Ritesh Agrawal
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There I told u !Don't bother with a guy who says he knows more than any of us.
 
Orika Akawana
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic