Firstly , this is a java program but not Android.
I write a very simple API to get the DB data in Php like below code:
<?php
$query = "Select * from staff order by staff_name";
$reuslt = $mysqli->query($query);
echo json_encode($reuslt->fetch_object());
Suppose that i can get the JSON object in the following URL easily in Android or Php: http://localhost/Testing/simpleWebService.php
But how can i get it in Java?? I have searched it in Google but the result seems not what i actually want and useful to me (Reason is i am quite Junior to Java ,Lack of knowledge in Web Service, not accurate keywords inputted........). I found sth like Jersey, JAX-RS but i don't think this help and the way to get the JSON from the Web Service is complex like that.
Can anyone help ? Thank you very much!!!!!!