• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Manager.playTone (BTW, Any Motorola mobile phone Developer here?)

 
Deecay Wonder
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am a newbie J2ME Developer who wants to write a J2ME game because of a very simple motive: to write something that runs on my Motorola E398 Mobile phone, and to impress my friends. Nice motive, Err

Anyway, I was wondering:
- Is there any discussion group or forum which Motorola mobile phone developer mostly hang out at? I don't know if it's appropriate for me to ask machine specific question here.

- I wrote a simple music keyboard application using Eclipse 3.0.2 + Java Wireless Tookit 2.1 + EclipseME. The application ran fine on emulator, but failed to run on my E398 phone. I suspect that it was the following lines that cause trouble:

try {
Manager.playTone(ToneControl.C4, 100, 80);
} catch (Exception ex){}

E398 supports MIDP 2.0, and MIDP 2.0 provides javax.microedition.media.* for tune playing. Then how come the above code failed?


Deecay
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Deecay.

Um, so basically you were able to provision the phone, right?

Obviously it becomes tougher to find out what actually fails.

You might create a simple error alert pop up inside your catch code, to make sure that that is where the problem lies.

I also believe that Motorola has a developer website. All the manufacturers have developer websites. Try a google search.

Mark
 
Yuri Magrisso
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Deecay.

First, you should install the Motorola SDK for J2ME. You can find it at the Motocoder site, Tools section (www.motocoder.com).
You can also create a toolkit definition in EclipseME for it and use it directly to test your application.
I think it will be much easier for you to pinpoint what is causing problems this way.

Regards,
Yuri
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic