I am wondering how to call a function just like in jQuery, but then in Java (for a native Android app).
$.ajax({
url:"http://test.com/read_mySQL.php",
method:"POST",
data:{username:uname_field,password:upass_field},
}).success(function(response){
if (response=="correct"){
alert("You are now logged in");
}
});
Above is the code for JavaScript, but I am wondering what the code would look like in Java.
Thank you!