Note that you need to reference android.jar from android-29 folder.
It will not work with targetSdkVersion=30. Avoid using File.DirRootExternal. Either use File.DirInternal or RuntimePermissions.GetSafeDirDefaultExternal.
So if i want to comply with android-30 there is nothing to do so my images taken with camera2 demo project to be stored at gallery. Ιs there any workaround even if an image is stored at File.DirInternal or RuntimePermissions.GetSafeDirDefaultExternal to be shown at gallery and not only through file explorer.
Depends on: Phone, JavaObject and ContentResolver libraries Sub AddBitmapToGallery (In As InputStream, TargetName As String, MimeType As String) Dim p As Phone Dim ctxt As JavaObject ctxt.InitializeContext If p.SdkVersion >= 29 Then Dim cr As ContentResolver...