This isn't specifically an Appery issue but I wonder if anybody has experience in capturing audio that can help?
I have used the following sample code from the cordova site and am currently testing on Android, the voice recorder starts OK and I am able to record voice clips but when I select the back button to return to the app I get an error code 3 on my Samsung Galaxy device and on a friends Razr we just get a grey screen.
If anybody has any ideas or experience please let me know.
// capture callback
var captureSuccess = function(mediaFiles) {
var i, path, len;
for (i = 0, len = mediaFiles.length; i < len; i += 1) {
path = mediaFiles.fullPath;
// do something interesting with the file
}
};
// capture error callback
var captureError = function(error) {
navigator.notification.alert('Error code: ' + error.code, null, 'Capture Error');
};
// start audio capture
navigator.device.capture.captureAudio(captureSuccess, captureError, {limit:2});