Details
Description
Camera Options
var cameraOptions = { quality: 100, destinationType: Camera.DestinationType.NATIVE_URI, sourceType: Camera.PictureSourceType.CAMERA, mediaType: Camera.MediaType.CAMERA, encodingType: Camera.EncodingType.JPEG, saveToPhotoAlbum: false, targetWidth: 350, targetHeight: 350, cameraDirection: Camera.Direction.FRONT, correctOrientation: true }
adb logcat
E PluginManager: Uncaught exception from plugin
E PluginManager: android.os.FileUriExposedException: file:///storage/emulated/0/Android/data/com.*.*/cache/.Pic.jpg exposed beyond app through ClipData.Item.getUri()
E PluginManager: at android.os.StrictMode.onFileUriExposed(StrictMode.java:1799)
E PluginManager: at android.net.Uri.checkFileUriExposed(Uri.java:2346)
E PluginManager: at android.content.ClipData.prepareToLeaveProcess(ClipData.java:845)
E PluginManager: at android.content.Intent.prepareToLeaveProcess(Intent.java:8941)
E PluginManager: at android.content.Intent.prepareToLeaveProcess(Intent.java:8926)
E PluginManager: at android.app.Instrumentation.execStartActivity(Instrumentation.java:1517)
E PluginManager: at android.app.Activity.startActivityForResult(Activity.java:4225)
E PluginManager: at org.apache.cordova.CordovaActivity.startActivityForResult(CordovaActivity.java:342)
E PluginManager: at android.app.Activity.startActivityForResult(Activity.java:4183)
E PluginManager: at org.apache.cordova.CordovaInterfaceImpl.startActivityForResult(CordovaInterfaceImpl.java:66)
E PluginManager: at org.apache.cordova.camera.CameraLauncher.takePicture(CameraLauncher.java:294)
E PluginManager: at org.apache.cordova.camera.CameraLauncher.callTakePicture(CameraLauncher.java:265)
E PluginManager: at org.apache.cordova.camera.CameraLauncher.execute(CameraLauncher.java:174)
E PluginManager: at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98)
E PluginManager: at org.apache.cordova.PluginManager.exec(PluginManager.java:132)
E PluginManager: at org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:57)
E PluginManager: at org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41)
E PluginManager: at org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)
E PluginManager: at org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:41)
E PluginManager: at android.os.Handler.dispatchMessage(Handler.java:102)
E PluginManager: at android.os.Looper.loop(Looper.java:154)
E PluginManager: at android.os.HandlerThread.run(HandlerThread.java:61)
Other Installed Plugins:
com.phonegap.plugins.nativesettingsopener 1.2 "Native settings"
cordova-plugin-camera 2.3.0 "Camera"
cordova-plugin-compat 1.1.0 "Compat"
cordova-plugin-console 1.0.4 "Console"
cordova-plugin-device 1.1.3 "Device"
cordova-plugin-geolocation 2.4.0 "Geolocation"
cordova-plugin-inappbrowser 1.5.0 "InAppBrowser"
cordova-plugin-network-information 1.3.0 "Network Information"
cordova-plugin-splashscreen 4.0.0 "Splashscreen"
cordova-plugin-statusbar 2.2.0 "StatusBar"
cordova-plugin-whitelist 1.3.0 "Whitelist"
cordova-plugin-x-toast 2.5.2 "Toast"
ionic-plugin-keyboard 2.2.1 "Keyboard"
phonegap-plugin-push 1.9.0 "PushPlugin"