Hi guys,

with last version of libs (189) I'm getting security exception (see below) 
which was resolved previously in CN1 using workaround requesting 
permissions 
(https://stackoverflow.com/questions/45548597/codenameone-capture-capturephoto-requests-wrong-permission)

My app worked OK on device doogee x5max until now.

It's regression or it was removed on purpose or it's different issue?

thanks

Ivan

[EDT] 0:0:0,92 - Exception: java.lang.SecurityException - Permission 
Denial: starting Intent { act=android.media.action.
IMAGE_CAPTURE flg=0x4000003 
cmp=com.mediatek.camera/com.android.camera.CaptureActivity 
clip={text/uri-list 
U:file:///storage/emulated/0/Pictures/Hive%20Tracker/IMG_20171028_230800.jpg} 
(has extras) } from ProcessRecord{ec17a7e 
5166:com.koppert.hivetracker/u0a94} (pid=5166, uid=10094) with revoked 
permission android.permission.CAMERA
java.lang.SecurityException: Permission Denial: starting Intent { 
act=android.media.action.IMAGE_CAPTURE flg=0x4000003 
cmp=com.mediatek.camera/com.android.camera.CaptureActivity 
clip={text/uri-list 
U:file:///storage/emulated/0/Pictures/Hive%20Tracker/IMG_20171028_230800.jpg} 
(has extras) } from ProcessRecord{ec17a7e 
5166:com.koppert.hivetracker/u0a94} (pid=5166, uid=10094) with revoked 
permission android.permission.CAMERA
at android.os.Parcel.readException(Parcel.java:1599)
at android.os.Parcel.readException(Parcel.java:1552)
at 
android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:2817)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1518)
at android.app.Activity.startActivityForResult(Activity.java:3978)
at android.app.Activity.startActivityForResult(Activity.java:3930)
at 
com.codename1.impl.android.CodenameOneActivity.startActivityForResult(CodenameOneActivity.java:576)
at 
com.codename1.impl.android.AndroidImplementation.capturePhoto(AndroidImplementation.java:6035)
at com.codename1.ui.Display.capturePhoto(Display.java:3173)
at com.codename1.capture.Capture.capturePhoto(Capture.java:77)
at com.codename1.capture.Capture.capturePhoto(Capture.java:143)
at com.codename1.capture.Capture.capturePhoto(Capture.java:85)
at com.koppert.hivetracker.view.QuestionaryOption.lambda$new$3(Unknown 
Source)
at 
com.koppert.hivetracker.view.QuestionaryOption$$Lambda$2.actionPerformed(Unknown
 
Source)
at 
com.codename1.ui.util.EventDispatcher.fireActionEvent(EventDispatcher.java:349)
at com.codename1.ui.Button.fireActionEvent(Button.java:499)
at com.codename1.ui.Button.released(Button.java:533)
at com.codename1.ui.Button.pointerReleased(Button.java:637)
at com.codename1.ui.Form.pointerReleased(Form.java:2794)
at com.codename1.ui.Component.pointerReleased(Component.java:4016)
at com.codename1.ui.Display.handleEvent(Display.java:2032)
at com.codename1.ui.Display.edtLoopImpl(Display.java:1028)
at com.codename1.ui.Display.mainEDTLoop(Display.java:946)
at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120)
at com.codename1.impl.CodenameOneThread$1.run(CodenameOneThread.java:60)
at java.lang.Thread.run(Thread.java:818)


If you are experiencing an issue please mention the full platform your 
issue applies to:
IDE: Eclipse
Desktop OS Ubuntu 16.04
Simulator 
Device doogee x5max , android 6.0

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/89967974-1012-4a9a-9c32-b79ccb75ad55%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to