• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic