I am making an application that uploads images to server and updates its database to server in android while executing it, it shows an error
Connection to ht
http://localhost
The above host is already occupied by the emulator in which you are running the code. If you want to access the local host of your computer than use the IP Address as http://10.0.2.2:8080/.
http://10.0.2.2:8080/
For more details, please refer this link.