I have an app using similar code as below to take photo then save to device.
No error prompted, but I could not find the photo taken.
Android targetSdkVersion is 30 and I am using Xiaomi 9T Pro (Android 11 RKQ1.200826.002)
The File.DirInternal is "/data/user/0/abc/files/"
where abc is my package name.
No error prompted, but I could not find the photo taken.
B4X:
Sub Camera1_PictureTaken (Data() As Byte)
Dim filename As String = "1.jpg"
Dim dir As String = File.DirInternal
camEx.SavePictureToFile(Data, dir, filename)
camEx.StartPreview 'restart preview
ToastMessageShow("Picture saved." & CRLF & "File size: " & File.Size(dir, filename), True)
End Sub
Android targetSdkVersion is 30 and I am using Xiaomi 9T Pro (Android 11 RKQ1.200826.002)
The File.DirInternal is "/data/user/0/abc/files/"
where abc is my package name.