B4A Question Save image to gallery - targetSdkVersion=30 - yiankos1    Sep 3, 2020 there is nothing to do so my images taken with camera2 demo project to be stored at gallery. Ιs....GetSafeDirDefaultExternal to be shown at gallery and not only through file explorer.
Can this code adopted to b4a?...Hello my friends,
According to this:
- 29 - No permission to access File.DirRootExternal, even...:requestLegacyExternalStorage, true)
Note that you need to reference android.jar from android-29... B4A Question Media Chooser - How to save image to gallery? - Erel (first post)    May 15, 2024   (1 reaction) https://www.b4x.com/android/forum/threads/add-image-to-gallery-android-5-10.121992/#content... B4A Question How to save an image to Gallery? - Riddle Ling    Aug 3, 2017 How to save an image to Gallery?
My code:
Dim Out As OutputStream
Out = File.OpenOutput(File.DirRootExternal, "Test.jpg", False)
bitmap.WriteToStream(Out, 100, "JPEG")
Out.Close
But did not appear in the Gallery app.... B4A Question How to save the image in the gallery after download - Thiago Alves de Farias (first post)    Feb 1, 2021 Obrigado! Thanks!... B4i Question Problem on download image and save to gallery - Ramezanpour (first post)    Apr 12, 2015 Resolved
I do not know how? But I tried again and I was resolved... B4i Question How can I save the photo bitmaps I generate to the Gallery - Erel (first post)    Mar 2, 2017   (1 reaction) Starting from iOS 10 you should add a usage description:
#PlistExtra: <key>NSPhotoLibraryUsageDescription</key><string>This app needs access to photos.</string>
... B4A Question How do I copy a image file from Gallery using code? - gregchao    Aug 13, 2025 Without the help of the User (e.g. ContentChooser), is there any way of getting an image from Gallery if I know the filename and album? I am able to save an image to Gallery and delete it but am unable to copy it without the User selecting it.... B4A Question Save an image from the smartphone gallery in the database and upload it to a listview. - OliverA (first post)    Sep 28, 2018 selectedImage As Bitmap = TempBitmap
selectedImage=CreateScaledBitmap(selectedImage,1920,1080)
to
Dim selectedImage As B4XBitmap = TempBitmap
selectedImage.Resize(1920,1080,True)
Finally, maybe... B4A Code Snippet SaveAs - Let the user select a target folder + list of other related methods - Erel    Nov 1, 2024   (46 reactions) the simpler version of ExternalStorage. Allows the user to choose the place where the file will be saved...B4A + B4i example: https://www.b4x.com/android/forum/threads/b4x-texteditor-save-and-load-external-files.132731/#post-838166 List of classes or libraries that can be used to access secondary storages: ContentChooser (Phone libray) - allows the user to select a resource or file using external... (secondary) storages. Requires the user to first select the target folder. Once the user selected... B4A Question Show image in Gallery (Android 7.0) - GGSoft    Sep 27, 2018 "), "prueba.jpg", False) bitmap.WriteToStream(Out, 100, "JPEG") Out.Close ' "Broadcast" image to gallery Dim Phone As Phone If Phone.SdkVersion < 19 Then...After searching in the forum, I tried this code: ' The image Dim bitmap As Bitmap = LoadBitmap(File.DirAssets, "prueba.jpg") ' Copy to ...files/pruebas/prueba.jpg Dim Out....Combine(r.GetSafeDirDefaultExternal("pruebas"), "prueba.jpg")) 'files to scan... Page: 1   2   3   4   5   6   7   |