Hi,
we used the following setting in Manifest in the past:
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="19"/>
After changing to <uses-sdk android:minSdkVersion="5" android:targetSdkVersion="26"/>
on Android Version 7.0 and higher the camera-mode function did not work...
"Audio Recording", we get running by granting rights to the microphone... But camera, we have no idea..!?
Error : "Camera is not available"... (see below)
The Code where the error is triggered:
In earlier android versions same Code work fine (example android 4.2.2) with the new targetSdkVersion="26" setting...
In the moment we have to change to the old setting "19" and Camera work fine...
Question, any idea to get camera working or should we let setting "19" for the next future???
regards
Rainer
we used the following setting in Manifest in the past:
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="19"/>
After changing to <uses-sdk android:minSdkVersion="5" android:targetSdkVersion="26"/>
on Android Version 7.0 and higher the camera-mode function did not work...
"Audio Recording", we get running by granting rights to the microphone... But camera, we have no idea..!?
Error : "Camera is not available"... (see below)
The Code where the error is triggered:
B4X:
Sub TakePicture
Dim i As Intent
i.Initialize("android.media.action.IMAGE_CAPTURE", "")
Dim uri As Uri
File.Delete(imageFolder, tempImageFile)
uri.Parse("file://" & File.Combine(imageFolder, tempImageFile))
i.PutExtra("output", uri) 'the image will be saved to this path
Try
StartActivityForResult(i)
Catch
ToastMessageShow("Camera is not available.", True)
Log(LastException) '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
End Try
End Sub
In earlier android versions same Code work fine (example android 4.2.2) with the new targetSdkVersion="26" setting...
In the moment we have to change to the old setting "19" and Camera work fine...
Question, any idea to get camera working or should we let setting "19" for the next future???
regards
Rainer