I'm returning to you another time because i'm simply blocked. I want to execute a php file stored in server, for that, i used that code:
@Override
protected Void doInBackground(Void... params) {
// Network operation
String url = "http://192.168.1.4/android_connect/get_all_surveys.php";
HttpClient client = new DefaultHttpClient();
try {
client.execute(new HttpGet(url));
Log.d("EXECUTED",client.execute(new HttpGet(url)).toString());
} catch(IOException e) {
Log.d("EXCEPTION EXECUTION",e.toString());
}
return null;
}
I want to indicate that that Log Log.d("EXECUTED",client.execute(new HttpGet(url)).toString()); is displayed so there is surely something wrong on that line client.execute(new HttpGet(url)); executing a php script is not simply a http get request?
Thank you for your help.