title: How to enable/disable wifi in android device through native code(java) in qt c/c++?
body: <p>I successfully managed <code>wifi</code> <em>enable</em> through java code with Android studio but not able to do same with qt c/c++..
   i have tried the java method.. it's working perfectly in android</p>
  
  <pre><code>public static  void enableWifi(Context context){
      WifiManager wifiManager = (WifiManager) context.getSystemService(context.WIFI_SERVICE);
      wifiManager.setWifiEnabled(true);//Turn on Wifi
      }
  </code></pre>
  
  
  
  <p>calling from c/c++ :</p>
  
  <pre><code>QAndroidJniObject::callStaticMethod&lt;void&gt;("com/app/MyJavaClass",
                                                             "enableWifi",
                                                           "(Landroid/content/Context;)V",
                                                              QtAndroid::androidContext().object());
  </code></pre>
  
  
  
  <p>I wasn't able to enable <code>wifi</code> in Android device using c/c++.. how can i achieve this? please help me out...
   Thanks in advance</p>