Is there some possible way of picking images from picture folder?
Basically you call the gallery intent and expect a result with onActivityForResult
Have a look here:
How to pick an image from gallery (SD Card) for my app?
Further searching in SO yields this, a complete solution:
Get/pick an image from Android's built-in Gallery app programmatically
Related
I tried available pub packages (image gallery saver and gallery saver) to try to save images/videos to gallery but it does not work on android 11/12/13.
If i save the image in getApplicationDocumentsDirectory() given by path provider, the image does not show in the gallery.
I tried all possible solution given in this stackoverflow.
How do i solve it?
i expect to save image and show it to its gallery.
I tried available pub packages (image gallery saver and gallery saver) to try to save images/videos to gallery but it does not work on android 11/12/13.
If i save the image in getApplicationDocumentsDirectory() given by path provider, the image does not show in the gallery.
I tried all possible solution given in this stackoverflow.
How do i solve it?
i expect to save image and show it to its gallery.
I have a activity that select image on the android photo gallery
Intent intent = new Intent(Intent.Action_PICK, MediaStore.Images.Media.INTERNAL_OCNTENT_URI);
but I want to choose images from my android studio drawable folder instead.
how should I modify the code?
You don't permission for that and that question is already asked
Link here
Im afraid there is no ACTION_PICK for picking images to project's folder.
But, you may create your own UI to show the images from your project's folder by getting the images using getIdentifier() as suggested from the link that Manjeet Deswal's answer provide
The device is Samsung Galaxy III. I developed an APP to run the camera activity and capture an image. After analyzing the image, I print out some text information. Right now every captured image is saved at gallery. I don't need the image to be saved in gallery or SD card. I think either of the following two solutions will work for me, but I don't know how to program it:
avoid saving pictures to gallery.
delete the picture somewhere in the APP.
Any comments are appreciated.
Read Android Camera tutorial.
...
Storage - Are the images or videos your application generates intended to be only visible to your application or shared so that other applications such as Gallery or other media and social apps can use them? Do you want the pictures and videos to be available even if your application is uninstalled? Check out the Saving Media Files section to see how to implement these options.
or see this one: How to save image captured with camera in specific folder.
In the Camera intent when starting, add this:
intent.putExtra(MediaStore.EXTRA_OUTPUT,Uri.fromFile(getTempFile(context)));
I solved my problem with following two steps:
as '#auselen' pointed, save all the images to a specific folder. How to save image captured with camera in specific folder.
delete all the images in that folder somewhere in the APP. How to Delete Image From SDCard in Android
use this for delete a pic
ImgPhoto1.setImageBitmap(null);
i want to know if it's posible to avoid camera intent to saving the pic to the image gallery. i want to add the pic only in the internal storage, so i don't want the pic save twice on my device. Or other thing will be, delete the pic after.
During R&D i found this ,it will defiantly solve your problem.
Deleting a gallery image after camera intent photo taken
How can i store Built-in Camera images in my application gallery?
I have a gallery in my application, and i want to store image taken from build in camera in to my gallery.
Is it possible to store image to our own gallery?
Thanks in advance.
Yes, get the images from where Built in camera will store images.from that path you can get images into your gallery app.general path is sdcard/DCIM/camera