I'm using Erel's code snippet (link) to save a file in an external folder (with sdk > 33), but it only allows saving it in the Downloads folder. Is there a way to save an image in Android's Pictures folder?
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...
In this code snippet: https://www.b4x.com/android/forum/threads/add-image-to-gallery-android-5-10.121992/ Erel shows how to add an image to an Android gallery for all SDKs 20? to 30. Only shortcomings are that it is image/jpeg specific (i.e. doesn't handle video/mp4) at SDK >= 29 and it...
In this code snippet: https://www.b4x.com/android/forum/threads/add-image-to-gallery-android-5-10.121992/ Erel shows how to add an image to an Android gallery for all SDKs 20? to 30. Only shortcomings are that it is image/jpeg specific (i.e. doesn't handle video/mp4) at SDK >= 29 and it...