07-13-2009 05:08 AM
hi,
I am getting "net.rim.device.api.system.ControlledAccessException" when i am tring to capture the sound on device , here is my code
try {
// Create a Player that captures live audio.
_player = Manager.createPlayer("capture://audio");
_player.realize();
// Get the RecordControl, set the record stream,
_rcontrol = (RecordControl) _player.getControl("RecordControl");
//Create a ByteArrayOutputStream to capture the audio stream.
_output = new ByteArrayOutputStream();
_rcontrol.setRecordStream(_output);
_rcontrol.startRecord();
_player.start();
} catch (final Exception e) {
UiApplication.getUiApplication().invokeAndWait(new Runnable() {
public void run() {
Dialog.inform("Erroe : "+e.toString());
}
});
}
I am tesing my application on JDE 4.6.1 blackberry curve 8900.
Thanks,
Solved! Go to Solution.
07-13-2009 05:25 AM
Edit Application permissions.. Make sure all the permissions are set to allow..
Cheers..
07-13-2009 05:38 AM
Hi ,
thanks it's works , but can we edit the permission by putting some code.
thanks ,
07-13-2009 05:46 AM
No that exactly not possible.. But you can push the application permissions screen so that user can set them allow.. Take look in to the class ApplicationPermissions ..
Cheers..
07-13-2009 05:50 AM