GSS FED created CB-14183:
----------------------------

             Summary: Android 8 - capture.captureAudio cause No Activity found 
to handle Intent { act=android.provider.MediaStore.RECORD_SOUND }
                 Key: CB-14183
                 URL: https://issues.apache.org/jira/browse/CB-14183
             Project: Apache Cordova
          Issue Type: Bug
          Components: cordova-plugin-media-capture
         Environment: Node version: v7.9.0

Cordova version: 7.0.1

cordova-android version: 7.1.0

 
            Reporter: GSS FED


Affected target: Android 8 (sdk = 26)

Not affected target: Android 6 (sdk = 23)

code:

 
{code:java}
// capture callback
var captureSuccess = function(mediaFiles) {
    var i, path, len;
    for (i = 0, len = mediaFiles.length; i < len; i += 1) {
        path = mediaFiles[i].fullPath;
        // do something interesting with the file
    }
};

// capture error callback
var captureError = function(error) {
    if (error.code) { console.log('Error code: ' + error.code); }
    else { console.log('Error code: ' + error); }
};

// start audio capture
navigator.device.capture.captureAudio(captureSuccess, captureError, 
{limit:2});{code}
 

Android 8 return error="No Activity found to handle Intent \{ 
act=android.provider.MediaStore.RECORD_SOUND }"

while Android 6 can open recorder 

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to