Android Question standard settings

fransvlaarhoven

Active Member
Licensed User
Longtime User
Hello,

when using

Dim PackageName As String= "com.android.settings"
Dim StartIntent As Intent= PM.GetApplicationIntent(PackageName)
StartActivity(StartIntent)


I can open the standard settings of the phone.
However, I want to go directly to the settings for controlling WiFi, network access.

Is this possible?

Thanks for any suggestions.
 

fransvlaarhoven

Active Member
Licensed User
Longtime User
Thanks for you fast answer.

Unfortunately, it seems not to work for me.

startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS));

I've tried:

Dim StartIntent As Intent
StartIntent.Initialize("com.android.settings.ACTION_WIFI_SETTINGS", "")
StartActivity(StartIntent)

but the result is:

android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.android.settings.ACTION_WIFI_SETTINGS flg=0x20000 }

any ideas?
 
Upvote 0

fransvlaarhoven

Active Member
Licensed User
Longtime User
somewhere a namespace problem; this seems to work


Dim StartIntent As Intent
StartIntent.Initialize("android.settings.WIFI_SETTINGS", "")
StartActivity(StartIntent)
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…