I have a script that is written in PHP but I need to make it into an android app. How do I get the same result?
$url = "http://54.193.106.113/ING004/android1/WebServer/Web/sogame/newControl/nmMail/getMailList? sign=".strtoupper($sign);
$connection = curl_init($url);
curl_setopt($connection, CURLOPT_POSTFIELDS, $finalData);
curl_setopt($connection, CURLOPT_RETURNTRANSFER, true);
curl_setopt($connection, CURLOPT_ENCODING, "gzip");
$result = curl_exec($connection);
$err = curl_error($connection);
$baseObj = json_decode($result, true);
curl_close($connection);