Android Volley Tutorial (Part 4.1) – How to Upload Multiple Images to Server

In this part of the series Android Volley Tutorial, I will teach you how upload multiple images to Server from Android Phone’s Gallery. Because the video is too long, I make 2 parts. So in this particular part, I will show you from how to open an image in Gallery, to open it and to load it into an ImageView. To achieve that, I use my library PhotoUtil at

Part 1 is at

Part 2 at
Part 3 is at
Part 4.1 is at
Part 4.2 is at


In Android, connecting android with PHP & MySQL is not always easy. In the early version of Android (before Android 3.0 API 11), you could connect to network in the main thread. However, it caused tremendous problems including memory leaks and ANR.

Since Android 3.0 API 11, Android released a library called AsyncTask which let you run the networking connection in a separate thread. I made a generic library for that which you can find at at and many video tutorials about it such as

However, the library was not enough because it followed the First In First Out (FIFO) rule. What if you had a long queues of tasks to be completed at the same time? Therefore Android just released Volley in Google I/O 2013. It is a promised to overcome the FIFO and became a real library for multitasking. It is faster and cached everything.