title: WiFi Direct status
body: <p>Is it possible to specifically check that whether WiFi Direct is On or Off ?
  I wrote a code which can only update about the wifi status that whether it is connected or not,no matter it is Access point or WiFi Direct</p>
  
  <pre><code>  ConnectivityManager connManager = (ConnectivityManager) getActivity().getSystemService(Context.CONNECTIVITY_SERVICE);
                      NetworkInfo mWifi = connManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
  
                      if (mWifi.isConnected()) {
  
                      }
                      if (!mWifi.isConnected()) {
  
  
                      }
  </code></pre>
  
  <p>I want to specifically check about the WiFi Direct status.Please help.</p>