Topic
  • 1 reply
  • Latest Post - ‏2013-01-18T04:12:29Z by IdanAdar
SystemAdmin
SystemAdmin
2327 Posts

Pinned topic Worklight 5.0.5.1 Cordova Audio recording issue with nexus 7...

‏2013-01-17T23:37:48Z |
I am seeing an error when trying to access the audio recorder for the nexus 7 running android 4.2.1

01-17 16:20:15.217: E/AndroidRuntime(3716): FATAL EXCEPTION: main
01-17 16:20:15.217: E/AndroidRuntime(3716): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.provider.MediaStore.RECORD_SOUND }
01-17 16:20:15.217: E/AndroidRuntime(3716): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1622)
01-17 16:20:15.217: E/AndroidRuntime(3716): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1417)
01-17 16:20:15.217: E/AndroidRuntime(3716): at android.app.Activity.startActivityForResult(Activity.java:3370)
01-17 16:20:15.217: E/AndroidRuntime(3716): at android.app.Activity.startActivityForResult(Activity.java:3331)
01-17 16:20:15.217: E/AndroidRuntime(3716): at org.apache.cordova.DroidGap.startActivityForResult(DroidGap.java:795)
01-17 16:20:15.217: E/AndroidRuntime(3716): at org.apache.cordova.Capture.captureAudio(Capture.java:195)
01-17 16:20:15.217: E/AndroidRuntime(3716): at org.apache.cordova.Capture.execute(Capture.java:97)
01-17 16:20:15.217: E/AndroidRuntime(3716): at org.apache.cordova.api.CordovaPlugin.execute(CordovaPlugin.java:61)
01-17 16:20:15.217: E/AndroidRuntime(3716): at org.apache.cordova.api.PluginManager.exec(PluginManager.java:224)
01-17 16:20:15.217: E/AndroidRuntime(3716): at org.apache.cordova.ExposedJsApi.exec(ExposedJsApi.java:43)
01-17 16:20:15.217: E/AndroidRuntime(3716): at org.apache.cordova.CordovaChromeClient.onJsPrompt(CordovaChromeClient.java:213)
01-17 16:20:15.217: E/AndroidRuntime(3716): at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:658)
01-17 16:20:15.217: E/AndroidRuntime(3716): at android.os.Handler.dispatchMessage(Handler.java:99)
01-17 16:20:15.217: E/AndroidRuntime(3716): at android.os.Looper.loop(Looper.java:137)
01-17 16:20:15.217: E/AndroidRuntime(3716): at android.app.ActivityThread.main(ActivityThread.java:5039)
01-17 16:20:15.217: E/AndroidRuntime(3716): at java.lang.reflect.Method.invokeNative(Native Method)
01-17 16:20:15.217: E/AndroidRuntime(3716): at java.lang.reflect.Method.invoke(Method.java:511)
01-17 16:20:15.217: E/AndroidRuntime(3716): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
01-17 16:20:15.217: E/AndroidRuntime(3716): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
01-17 16:20:15.217: E/AndroidRuntime(3716): at dalvik.system.NativeStart.main(Native Method)
I am running worklight 5.0.5.1, I am access the audio recorder via navigator.device.capture.captureAudio. Thanks for any help.
  • IdanAdar
    IdanAdar
    741 Posts

    Re: Worklight 5.0.5.1 Cordova Audio recording issue with nexus 7...

    ‏2013-01-18T04:12:29Z  
    pyuana,
    developerWorks is a public forum and you are posting a question about an internal version of Worklight; please do not do that again.

    As for your question, make see the Permissions section in the following Cordova documentation page:
    http://docs.phonegap.com/en/1.9.0/cordova_media_capture_capture.md.html

    Based on it you may need to add some lines to plugins.xml and androidManifest.xm in your project

    Idan Adar
    QA Engineer
    IBM Worklight Mobile Platform