Android Server Connection


There are a couple of ways to allow Android to connect to the servers. Two of the classes for the connections are given as follows: This app is revised from the Android - PHP/MySQL Tutorial, which retrieves the user’s role from the MySQL database on the server according to the entered username and password.

The three figures on the right show the screenshots of this application, which calls a JDBC program using either one of the two methods: GET and POST.