1
I know there’s probably an answer here on the site to my question, but when I researched I saw several ways and got a little lost.
I wanted to create a hidden folder and have some ImageButton
or something so that you can select an image from the gallery (do not open the camera and take a photo on time) and copy (without deleting the original image) to the folder created
I also need to resize this image if the selected image is very large, in the tests I did, the image was very large and covered much of the screen, and even covering other things, only part of the image appeared, to try to solve this problem I put a fixed size on ImageButton
, so did not cover the rest of the screen but cut the image (showed only a piece)
From the tests I’ve done I imagine it must be creating a Intent
to open the gallery with return, in this return take the URI
image and transform that URI
in a path, to be able to copy to another folder, and in the folder turn the image into bitmap
, to be able to resize and then transform the bitmap
in URI
to save the path in the bank and then set using setImageUri()
in the rest of the application (in ImageView
and ImageButton
), but in case the user cancels or, in the future, delete the registration, it would also be necessary to delete the image file moved to the created folder
Another question is, what is the best way to get this image? With a ImageView
, ImageButton
or what, if there are any patterns?
I saw several questions that answer this but house question answered a part and when I went to gather I could not, someone can help?
If you know a question that does so please pass the link
Your question is very broad and focuses on many issues. There is no answer here to answer all of this. However there are answers that answer, individually, to each of the subjects. You just want to search.
– ramaral