Android Question App Runs under Debug but fails under release

Pat Fahey

Member
Licensed User
Longtime User
My application runs well under debug but fails at a specific location when as a release build.

Where should I look for an answer.

I have included a zip of my project
 

Attachments

  • gps_2017_05_11_.zip
    273.7 KB · Views: 159

Pat Fahey

Member
Licensed User
Longtime User
that worked and here is my error
java.lang.Exception: Sub activity_permissionresult was not found.

I am using the

Sub Activity_Resume
Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_CAMERA)
InitializeCamera
End Sub

in the activity
 
Upvote 0

jimmyF

Active Member
Licensed User
Longtime User
that worked and here is my error
java.lang.Exception: Sub activity_permissionresult was not found.

I am using the

Sub Activity_Resume
Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_CAMERA)
InitializeCamera
End Sub

in the activity

I am very new at this (B4X) so I may be wrong, but I had a similar issue and found that I needed to add the following Sub.
It appears that is what you are missing.

B4X:
Sub Activity_PermissionResult (Permission As String, Result As Boolean)
    If Permission = rp.PERMISSION_CAMERA Then
        If Result Then Log("Permission granted")
    End If
  
End Sub

HTH
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…