I am a beginner in Android app development with the Kotlin language. I have written some simple apps, and now I am planning to write an app that allows users to compress multiple images which are stored in the internal memory (in JPG format), at a custom compression rate (entered in EditText), and then automatically compress all of these images into a zip file for easy attachment to email or sharing. The compressed and zipped image files are saved to a custom folder. Due to my lack of experience, I would appreciate your guidance on where to start. Thank you very much.
I have tried following some instructions on the internet, but when I run them, I get an error message, or the program only allows me to compress one image at a time.
You can try below code snippet for compressing multiple files.
Below is the sample code use above method.
Hope it helps. Ankit