Android Question Cannot open camera using cameraex

Status
Not open for further replies.

Pat Fahey

Member
Licensed User
Longtime User
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
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

Pat Fahey

Member
Licensed User
Longtime User
Guys this is my application, the error occurs in the custview module
 

Attachments

  • upload_Camera_test.zip
    271.9 KB · Views: 191
Upvote 0

Pat Fahey

Member
Licensed User
Longtime User
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

Tomek92

Member
Licensed User
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:
Upvote 0

ronell

Well-Known Member
Licensed User
Longtime User
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

Tomek92

Member
Licensed User
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
Status
Not open for further replies.
Top