None of that material has a problem with description.
it is always a good idea to be clear, that this is a bug, so it will not be forgotten...
I guess, it is already on the permissions bug list of @ewpatton... isn't it?
Taifun
Correction. I checked it again. No idea why I missed that, but the Image
component now no longer requests READ
permission on Android 11+ if the image is created by the app itself and stored in one of the Shared
folders.
My fault, so hopefully not in this case.
Hello Kumaraswamy
Could you reduce the size of the icon for the Palettes please? 16 x 16 pix
Hi!
I've been fooling arround with Pro Camera extension for some days now and it works great! But the resulting images are then not "found" by the system. As far as I was able to google-up, all media has to be scanned by MediaStore to be included in galleries and so on. Are you planning on adding this feature to the extension or does anyone know how to do it otherwise? Would it be possible somehow with Activity starter? I'm not fammiliar with neither Android nor ActivityStarter...
Thanx!
I can help you if you want to save the images to the Gallery after taking them.
Wait till I fetch the .aia
Here you go :
ProCamera.aia (143.8 KB)
Steps : -
- Download the
.aia
. - Import it to AppInventor.
- Compile it without changing anything in it.
- Download the compiled apk.
- Install it.
- Check if it works as per your wishes.
Doesn't work on Android 11+.
(the well known issue: "Error 908: The permission ...")
Try this one:
So the answer is TaifunTools Extension: GalleryRefresh !
I love you! :D:D:D I was starting to dive into intents, actions, broadcasts not to mention APK differences...
Big thanx!
Please do not request for, or mark, solutions in an Extension topic.
Lol I thought it was a different topic.
Are there any examples or samples of how to use the TakePreviewPicture method? I get an undefined error whenever I try it.
Post your blocks and .aia
file.
First, what's the difference between TakePreviewPicture vs. just TakePicture?
Take Picture will use the android api to capture photo while the take preview picture will capture the image in the view or arrangement
So how do I actually access the image after calling TakePreviewPicture? What goes inside the SavedPhoto event to actually display the captured photo in the view?
Use the set Image1.Picture to ProCamera1.Output.
If you want the image to be shown in your Gallery, set the output path to a shared directory and in the ProCamera1.SavedPicture use TaifunTools.GalleryRefresh for ProCamera1.Output.
When I do that, I get an undefined error, and the app crashes.
Here's the actual code blocks I have implemented.
What have you set as the output path Adi ?
Shared Directory - This directory is available to all your app. The Shared directory for pictures is
/storage/emulated/0/Pictures
to use it as an output path, make a global variable nameddirectory
, that stores the value/storage/emulated/0/Pictures/
(remember the last/
in this case). On the Button click event, (for the Camera button), set the output path toglobal directory
+filename.png
. You should also have a global variable namedlastPath
, set its value to ProCamera1.Output. Now use the ProCamera.TakePreviewPicture.
Under the SavedPhoto event, set Image1.Path tolastPath
.
Wait till I post an aia.
App Specific Directory (ASD) - This directory is available to only your app. It is located in the external storage. (I'm not taking about the removable micro SD Card.) If you use this, you may not be able to show the image in your gallery directory from that folder.
App Private Directory (Data directory) - It is where the data for an app is stored. If you want further descriptions on android data storage, read this topic :