title: Android wifi p2p unsupported (wifidirect)
body: <p>i'm using the protocol for making p2p connection using wifi in android (http://developer.android.com/reference/android/net/wifi/p2p/package-summary.html)</p>
  
  <p>I have a problem calling the <strong>discoverPeers()</strong> function : </p>
  
  <p>ActionListener.onFailure(int reason)  is called (its an interface to trigger some events) and i receive reason=1, which means 'P2P_UNSUPPORTED'.
  I added all the permissions required and the (use... wifidirect) tag.</p>
  
  <p>i'm using a virtual device and the latest android sdk(4.0.3),
  i have an internet connection on this device.</p>
  
  <pre><code>&lt;uses-sdk android:minSdkVersion="15" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/&gt;
  &lt;uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /&gt;
  &lt;uses permission android:name="android.permission.INTERNET"/&gt;
  &lt;uses-feature android:name="android.hardware.wifi.direct" android:required="true"/&gt;
  </code></pre>