| Reply | « Previous Thread | Next Thread » |
|
Today I transfererred my code from Sony Ericsson and everything works great except of sound.
I use simply tone sequences like this: Tone tc; Player screw; screw = Manager.createPlayer(Manager.TONE_DEVICE_LOCATOR); screw.realize(); tc = (ToneControl)screw.getControl("javax.microedition.media.control.ToneControl"); tc.setSequence(NSEQ_SCREW); screw.setLoopCount(1); screw.start(); On realize() method, emulator throws exception: java.lang.IllegalStateException: Can't invoke the method at the closed state I have not real device, but only may start on emulator. The same exception throws example application MediaSampler from Nokia developers suite package. MediaSampler also don/t play tone using Manager.playTone() method, nothing happens, but no exception is thrown. Please help me: what happens? That's impossible, that Player can't play simply tone sequences on Nokia phones. Whole exception text looks like this: <this is place, when createPlayer() is called> MMA : Exception during remote invocation java.lang.RuntimeException: java.lang.NullPointerException: <this is place, when realize() is called> MMA : Exception during remote invocation java.lang.RuntimeException: java.lang.NullPointerException: MMA : Exception during remote invocation java.lang.RuntimeException: java.lang.NullPointerException: java.lang.IllegalStateException: Can't invoke the method at the closed state I'm sure, that after createPlayer(...) screw is not null. Lukasz Stela |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Dial method in RunL on 6600 | marycore | General Symbian C++ | 4 | 2007-02-02 18:14 |
| IllegalStateException on realize() method | lstela | Symbian Media (Graphics & Sounds) | 0 | 2006-02-05 21:18 |
| setClip() method of Graphics class in not working with DirectGraphics class-Nokia API | dotcdotc | Mobile Java General | 0 | 2004-03-03 11:34 |
| Methods, that take lots of space | doctordwarf | Mobile Java General | 4 | 2003-07-30 12:05 |