Resize Image Uri Android. Resize the selected photo on a background thread and return the result to the main thread as you ll see resizing image is an expensive operation and must not be performed on the main thread. The problem is the image appears way too big inside my activity.
Then i set that image as the new image for the image button. You can set the max size of this imageview as well. Also when i save the image and download again in the app it takes a lot of time because it has to download a big image.
This example demonstrate about how to resize image in android app.
I don t know how i reduce the size of the image picked. Select res directory so you don t have to move the resized files. This example demonstrates how to resize image in an android app using kotlin. You can set the max size of this imageview as well.