• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps developing using Wifi direct on Android 3.2

I have an Android 3.2 and the Wifi direct works fine.
The problem is, I'm trying to compile this sample but it says that the import "android.net.wifi.p2p" cannot be resolved.
Well, if Android 3.2 supports Wifi Direct an actually I'm able to send files through this, why I'm not able to develop for this?

P.S.: this error don't happen when the project is configured to run over Android 4.0.
 
Welcome to the forums!

I'm pretty sure WiFi Direct was a new feature in Android 4.0.

Can you elaborate on what you mean by "I have an Android 3.2 and the Wifi direct works fine."

I wouldn't expect it to work at all. However, it's possible some devices and/or ROMs have some level of WiFiDirect in them. But it wasnt made an official part of the SDK until Android 4.0.


hth



 
hi alostpacket, thank for the reply!

I meant that I'm able to send files using WifiDirect since I updated my Android from 3.1 to 3.2 version.

In this site it has been said that the lib wifi p2p only works on API Level 14... Then I'm afraid that I cannot count only this for the purpose of developing...
 
Back
Top Bottom