I get bunch of errors on line: wifiscan.startScan(testbtn_Click,False)
B4X:
Sub testbtn_Click
Dim mWiFi As MLwifi
Dim wifiscan As MLScan
mWiFi.EnableWifi(True)
wifiscan.startScan(testbtn_Click,False)
For i = 0 To wifiscan.wifis.Length - 1
ToastMessageShow(wifiscan.wifis(i), False)
Next
End Sub
I never used this feature, but this line is simply wrong:
wifiscan.startScan(testbtn_Click,False)
testntn_Click is the even that gets fired when the testbtn is clicked...
You should replace that with the event name that should be called when the scan completes.