Cordoba Media Capture Android Bug # 3 Issue

So, I am currently developing a mobile application that is associated with very short sound recordings, and for some time I decided to build it using Cordova (and not Phonegap). Unfortunately, today I am struggling with the actual recording on my Nexus 5.

I use the cordova media capture plugin, the code currently being executed is the code from their documentation.

On the older device, everything works fine. On my Nexus 5, although when I press the button to record sound, it just returns error code 3 (without media files) even without opening the audio recorder. I thought it might be a problem with the new android, but on the simulator this works fine. I also thought that somehow this could be due to the fact that I can’t find the audio recording application on my device, so I installed one and still nothing.

Then I thought, maybe I'm doing something wrong, I installed this application: https://github.com/Icenium/sample-capture and the same problem.

There were some tips on updating the Capture java file, which I did and still have not helped.

Any ideas? Here is crazy ...

+3
source share
3

, targetdk 18 19 androidmanifest.xml(, , api 18 ssh- android).

- chketkat quirk webview jellybean.

+1

I had the same problem, it works adb logcatuseful:

W/System.err(22102): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.provider.MediaStore.RECORD_SOUND }
...
D/CordovaLog(22102): file:///android_asset/www/js/index.js: Line 77 : Capture ERROR: {"message":"Canceled.","code":3}

For me, the problem is that Nexus 5 (android 4.4.2) does not handle Intent, that is, it does not seem to have a sound recorder by default. On devices that have a default sound recorder, you may see this error if this application does not include a receiver for RECORD_SOUND ..

0
source

All Articles