Android Question How to open WiFi Direct setting page with intent

toby

Well-Known Member
Licensed User
Longtime User
I'm wondering if someone could kindly show me to open up the WiFi Direct setting page with an intent.

TIA
 

drgottjr

Expert
Licensed User
Longtime User
almost 30 views and nobody will answer this guy?
B4X:
Dim StartIntent As Intent
StartIntent.Initialize("android.settings.WIFI_SETTINGS", "")
StartActivity(StartIntent)

hit those settings!
 
Upvote 0

toby

Well-Known Member
Licensed User
Longtime User
Your code will open up the WiFi setting page, and from there one eventually should be able to reach the WiFi Direct page. I've found that navigating from WiFi page to WiFi Direct is not uniform and confusing; different manufacturers have different way of doing it.

I was hoping to open the WiFi Direct setting page directly to save a lot of troubles for the app users; if such intent doesn't exist, then I'll use your code.

Thank for your help!
 
Upvote 0

drgottjr

Expert
Licensed User
Longtime User
there may not be an intent exposed for that. while waiting for someone to respond here, you might want to visit google.com. sorry, i misread your post as looking for a way to get to wifi settings directly.
 
Upvote 0

toby

Well-Known Member
Licensed User
Longtime User
I might end up using your code because I'm not sure such intent exists.

Thanks again for your help and time!
 
Upvote 0
Top