P Pat Fahey Member Licensed User Longtime User May 18, 2017 #1 I am using camerex and can't get past the camera_ready sub. it doesn't seem to error but I get the classic cannot open camera in a toast. I can upload the code if anybody thinks it will help. The cameraex example works fine on my Samsung any help would be greatly appreciated. Pat
I am using camerex and can't get past the camera_ready sub. it doesn't seem to error but I get the classic cannot open camera in a toast. I can upload the code if anybody thinks it will help. The cameraex example works fine on my Samsung any help would be greatly appreciated. Pat
R ronell Well-Known Member Licensed User Longtime User May 18, 2017 #2 Pat Fahey said: I can upload the code if anybody thinks it will help. Click to expand... yeah you should( with code tags) Upvote 0
Pat Fahey said: I can upload the code if anybody thinks it will help. Click to expand... yeah you should( with code tags)
DonManfred Expert Licensed User Longtime User May 18, 2017 #3 Pat Fahey said: I can upload the code if anybody thinks it will help. Click to expand... From the IDE use File-Export as Zip. Upload this zip please. Upvote 0
Pat Fahey said: I can upload the code if anybody thinks it will help. Click to expand... From the IDE use File-Export as Zip. Upload this zip please.
P Pat Fahey Member Licensed User Longtime User May 19, 2017 #4 Guys this is my application, the error occurs in the custview module Attachments upload_Camera_test.zip 271.9 KB · Views: 180 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User May 19, 2017 #5 Try to make the camera panel visible before you initialize CameraEx. Upvote 0
P Pat Fahey Member Licensed User Longtime User May 23, 2017 #6 Change the code to make sure the layout is open. but now I'm getting the java.lang.reflect.invocationtargetexception saying it cannot open the camera services. Any suggestions? Upvote 0
Change the code to make sure the layout is open. but now I'm getting the java.lang.reflect.invocationtargetexception saying it cannot open the camera services. Any suggestions?
Erel B4X founder Staff member Licensed User Longtime User May 23, 2017 #7 Can you post the full error message from the logs? Upvote 0
P Pat Fahey Member Licensed User Longtime User May 23, 2017 #8 success = false, (RuntimeException) java.lang.RuntimeException: Fail to connect to camera service Upvote 0
P Pat Fahey Member Licensed User Longtime User May 23, 2017 #9 Thanks everybody, it was a permissions issue. You guys are awesome. Pat Upvote 0
T Tomek92 Member Licensed User Mar 19, 2019 #10 Hi, How did you solve a permissions issue? I am too using camerex and can't get past the camera_ready sub. I checked the variable success and returns false. I am using LG K10 (2017) When installing the application, the phone does not require camera permissions. Please help. Last edited: Mar 19, 2019 Upvote 0
Hi, How did you solve a permissions issue? I am too using camerex and can't get past the camera_ready sub. I checked the variable success and returns false. I am using LG K10 (2017) When installing the application, the phone does not require camera permissions. Please help.
R ronell Well-Known Member Licensed User Longtime User Mar 19, 2019 #11 B4X: Sub Process_Globals Dim rp As RuntimePermissions End Sub rp.CheckAndRequest(rp.PERMISSION_CAMERA) Wait For Activity_PermissionResult (Permission As String, ResultPermission As Boolean) Log(Permission) Log(ResultPermission) Upvote 0
B4X: Sub Process_Globals Dim rp As RuntimePermissions End Sub rp.CheckAndRequest(rp.PERMISSION_CAMERA) Wait For Activity_PermissionResult (Permission As String, ResultPermission As Boolean) Log(Permission) Log(ResultPermission)
Erel B4X founder Staff member Licensed User Longtime User Mar 19, 2019 #12 The latest version of CameraEx example properly handles the permission: https://www.b4x.com/android/forum/t...tends-the-camera-library-functionality.23801/ Upvote 0
The latest version of CameraEx example properly handles the permission: https://www.b4x.com/android/forum/t...tends-the-camera-library-functionality.23801/
T Tomek92 Member Licensed User Mar 20, 2019 #13 Thank you for the answers. But, when I add the RuntimePermission library (version 1.10) I have a compilation error: B4A Version: 8.80 Parsing the code. (0.03s) Building folders structure. (0.03s) Compiling the code. (0.03s) Compiling the layout code. (0.00 secs) Organizing libraries. error Maven artifact not found: com.android.support/support-v4 What should I do? Upvote 0
Thank you for the answers. But, when I add the RuntimePermission library (version 1.10) I have a compilation error: B4A Version: 8.80 Parsing the code. (0.03s) Building folders structure. (0.03s) Compiling the code. (0.03s) Compiling the layout code. (0.00 secs) Organizing libraries. error Maven artifact not found: com.android.support/support-v4 What should I do?
R ronell Well-Known Member Licensed User Longtime User Mar 20, 2019 #14 Tomek92 said: What should I do? Click to expand... install the latest android sdk Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Mar 20, 2019 #15 I'm sorry but you should never post in existing threads. Please start a new thread if you are unable to solve it. Upvote 0
I'm sorry but you should never post in existing threads. Please start a new thread if you are unable to solve it.