How to Connect Android with PHP and MySQL? Volley Tutorial (Part 4.2)

Опубликовано: 01 Октябрь 2024
на канале: Oum Saokosal
11,659
62

How to Connect Android with PHP and MySQL? Volley Tutorial (Part 4.2) worked on any Android Phone. Please subscribe https://youtube.com/oumsaokosal?sub_c...

Android Volley Tutorial (Part 4.2) - How Upload Multiple Images to Server. In this part of the series Android Volley Tutorial, I continue from Part 4.1 about how to upload multiple images to server using Android Volley. And also I will talk about the PHP code to write the file to server.

Please note that this tutorial may work on your older Samsung Galaxy, LG, Oppo, Huawei, Sony or Nokia Android phones which run Android Operating Systems depended on their API version.

_______________________________________

Source Code: http://bit.ly/2woSbYZ

_______________________________________


Part 1 is at    • How to Connect Android with PHP and M...  
Part 2 at    • How to Connect Android with PHP and M...  
Part 3 is at    • How to Connect Android with PHP and M...  
Part 4.1 is at    • How to Connect Android with PHP and M...  
Part 4.2 is at    • How to Connect Android with PHP and M...  

Some of it, I use my library PhotoUtil at github.com/kosalgeek/PhotoUtil.

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 https://github.com/kosalgeek/generic_... and many video tutorials about it such as    • Best Android Studio: How to Connect A...  

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.


Check out the latest articles on Android Phone at:
https://kosalgeek.com

Oum Saokosal

Photo Credit:
The photo (https://www.flickr.com/photos/1298297...) used in my video cover is copyright (c) by 王馬文 (https://www.flickr.com/photos/1298297...) made it available under Creative Commons (https://creativecommons.org/licenses/....

The Creator of Channel Oum Saokosal