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.




      Teacher: What makes you see?    
      Bobyjack: My eyes, my nose and my ears.    
      Teacher: True for the eyes but why for your ears and nose?    
      Bobyjack: It’s to hold my glasses!!!