Bonjour,

J'ai besoin d'un conseille concernant le développement d'une application qui récollette des informations sur mon téléphone Android ( constructeur, OS, version, rooté.......) et de les envoyer par une requête GET vers une machine Windows avec WAMPSERVER ou n'importe quelle serveur WEB pour afficher ces information récolté au paravent sur mon téléphone.

Voila ma class Android :
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.app.Activity;
import android.os.Build;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;


public class Sofiane_Byod_Service_activity_main extends ActionBarActivity {


@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();

//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}

return super.onOptionsItemSelected(item);


}


@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_sofiane__byod__service_activity_main);

final Button button1 = (Button) findViewById(R.id.button1);
final Button button2 = (Button) findViewById(R.id.button2);

// Device text views
final TextView Text1 = (TextView) findViewById(R.id.textView5);
final TextView Text2 = (TextView) findViewById(R.id.TextView09);
final TextView Text3 = (TextView) findViewById(R.id.TextView06);
final TextView Text4 = (TextView) findViewById(R.id.TextView05);

button1.setOnClickListener(new View.OnClickListener() {

@Override
public void onClick(View v) {
String command[] = { "su", "-c", "ls", "/data" };
Shell_Byod shell = new Shell_Byod();
String text = shell.sendShellCommand(command);
if ((text.indexOf("app") > -1) || (text.indexOf("anr") > -1)
|| (text.indexOf("user") > -1)
|| (text.indexOf("data") > -1)) {
// setNewTextInTextView("This phone is not rooted");
// //Debugging
button2.setText("Votre téléphone est Rooté");
} else {
// setNewTextInTextView("This phone is rooted!");
// //Debugging
button2.setText("Votre téléphone né pas Rooté");
}
// setNewTextInTextView(text); //Debugging
// The end-user-visible name for the end product.
String curModel = Build.MODEL;
// The name of the overall product.
String curProduct = Build.PRODUCT;
// The manufacturer of the product/hardware.
String curMan = Build.MANUFACTURER;
// The brand (e.g., carrier) the software is customized for, if
// any.
String curBrand = Build.BRAND;
// The name of the industrial design.
String curDevice = Build.DEVICE;
String curVer = Build.VERSION.RELEASE;

// Set the current information
Text1.setText(curDevice);
Text2.setText(curModel);
Text3.setText(curMan);
Text4.setText(curVer);
}
});
}

public void setNewTextInTextView(String text) {
TextView tv = new TextView(this);
tv.setText(text);
setContentView(tv);
}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_sofiane__byod__service_activity_main, menu);
return true;
}

@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (event.getAction() == KeyEvent.ACTION_DOWN) {
switch (keyCode) {
case KeyEvent.KEYCODE_BACK:

finish();
System.exit(0);

return true;
}

}
return super.onKeyDown(keyCode, event);
}
}

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Bon l'application marche elle peux détecté si mon téléphone est rooté ou non et voire le model le constructeur......... et tout, maintenant je veux que ces information soi transmis vers un serveur WEB local uniquement pour visualiser ces information ?

Merci a vous.

Mes salutations.