I haven't found anyone on the forums (StackOverflow / Google groups / etc.) 
who managed to use the Wifi p2p on a virtual device.
The easiest is to use a real device like the Galaxy Nexus.
Problem is that even on this device there is a bug in the broadcom wifi 
driver. (http://code.google.com/p/android/issues/detail?id=25397)

Fab

Le dimanche 29 avril 2012 16:37:50 UTC+1, Ododo a écrit :
>
>
>
>    Hello,
>
> 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
> )
>
> I have a problem calling the *discoverPeers()* function : 
>
> 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.
>
> i use a virtual device and the latest android sdk(4.0.3), i have an 
> internet connection on this device.
>
> <uses-sdk android:minSdkVersion="15" />
> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
> <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
> <uses permission android:name="android.permission.INTERNET"/>
> <uses-feature android:name="android.hardware.wifi.direct" 
> android:required="true"/
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to