Connect to a wifi network

Cranx

Member
Licensed User
Longtime User
Hi all,

I must firstly say that B4A is brilliant and so satisfying to learn! :sign0098:

Can anyone guide me to solve my next challenge in my app design please:

Is there a way to:

  • find a wifi network
  • enter WPA security code
  • Connect

All within my app using b4a? (i.e. not using the networks settings on the phone)

I'd like to do it within my app please

Please help, it will be very much appreciated.
 

Cranx

Member
Licensed User
Longtime User
Hey Erel,

Done some working around and investigating and found:

Sub wifi_btn_click
Dim i As Intent
i.Initialize( "android.settings.WIFI_SETTINGS", "")
i.Flags = 268435456
StartActivity(i)

End Sub


Works perfectly

Hope it helps anyone that wants this function, thanks Erel, your the best, support here is great and very prompt!
 
Upvote 0

vb1992

Well-Known Member
Licensed User
Longtime User
Useful info:


Constant Value: 268435456 (0x10000000)


 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…