B4A Library WifiDirect Library


  • WifiDirect.zip
    9.3 KB · Views: 1,942
Last edited:


New Member
Licensed User
Longtime User
Hi all,
I am trying to combine the 2 excellent tutorials using wifi-direct and the walki-talki example into one, that is use wifi-direct to stream voice, however I cannot seem to get the audio to play on the other device. I upload the changes I made and if anyone could help I would appreciate it.


  • WifiDirectAudio.zip
    10 KB · Views: 726


Licensed User
Longtime User
First look - you don't have audiostream.startplaying
Add it after initialization of the audiostream.

Graeme Tacon

Licensed User
Longtime User
I've recently downloaded Basic4Android, so sorry in advance for the stupid question!
I've downloaded these examples, but none of them will compile - I get the following error:

Parsing code. Error
Error parsing program.
Error description: Unknown type: wifimanager
Are you missing a library reference?
Occurred on line: 6
Private manager As WifiManager

Am I missing something ?


B4X founder
Staff member
Licensed User
Longtime User
Download the attached library. Unzip it and copy it to the libraries folder (the one you set under Tools - Configure Paths). Now right click on the libraries list and choose refresh.

Check WifiDirect.