c++ Console application connection to android app
<p>I have to make a connection between android app and c++ console application:
The console application is suppose to be the client side which has 4 commands to get data from the server which is the android device. In other words I need to display the device info (BT/WIFI on/off, BATTERY LVL) in the console application.</p>

<p>I created the client side and I also have the code for the things I have to check(if BT is on for example).
The only thing I'm missing is the connection between these, I have no experience in server code, and I need your help with this, how is this done or links for tutorials cause I didn't find some.</p>

<p>the android code:</p>

<pre><code>  @Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    //IMEI init
    TelephonyManager telephonyManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
    IMEI = telephonyManager.getDeviceId();

    //software version init
    PackageInfo pInfo = null;
    try {
        pInfo = getPackageManager().getPackageInfo(getPackageName(), 0);
    } catch (PackageManager.NameNotFoundException e) {
        e.printStackTrace();
    }
    int SoftwareVersion = pInfo.versionCode;


    //battery lvl init
    battery = Library.getBatteryLevel(this);

    //android id init
    android_id = Secure.getString(this.getContentResolver(),
            Secure.ANDROID_ID);

    //android availability init
    internetaval = Library.isNetworkAvailable(this);

    //finish init  &lt;&lt;~~




    TextView tv = (TextView) findViewById(R.id.tv1);
    tv.setText(" " + internetaval);

    Library.setWifi(this,false);


}
</code></pre>