i have written a record programme:

Player recorder;
RecordControl rc;
recorder = Manager.createPlayer("capture://audio?rate=8000&bits=16");
recorder.realize();
//record for 5 seconds.
rc = (RecordControl)recorder.getControl("RecordControl");
output = new ByteArrayOutputStream();
rc.setRecordStream(output);
rc.startRecord();
recorder.start();
try {
Thread.currentThread().sleep(5000);
} catch (InterruptedException ie) {}
stopRecord();

It only works well in the emulator of java's J2ME wireless Toolkit.
Actually, I would like to put it in my Nokia 6230, however, it failed to do so when i put it to the real phone.
Is 6230 does not support audio capture, or any other reasons?
And how can i solve the problem?

Thanks!!