F fransvlaarhoven Active Member Licensed User Longtime User May 21, 2016 #1 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.
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.
DonManfred Expert Licensed User Longtime User May 21, 2016 #2 Based on http://stackoverflow.com/questions/...ings-screen-from-my-application-using-android i would try B4X: com.android.settings.ACTION_WIFI_SETTINGS Don´t know if this works Upvote 0
Based on http://stackoverflow.com/questions/...ings-screen-from-my-application-using-android i would try B4X: com.android.settings.ACTION_WIFI_SETTINGS Don´t know if this works
F fransvlaarhoven Active Member Licensed User Longtime User May 21, 2016 #3 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
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?
F fransvlaarhoven Active Member Licensed User Longtime User May 21, 2016 #4 somewhere a namespace problem; this seems to work Dim StartIntent As Intent StartIntent.Initialize("android.settings.WIFI_SETTINGS", "") StartActivity(StartIntent) Upvote 0
somewhere a namespace problem; this seems to work Dim StartIntent As Intent StartIntent.Initialize("android.settings.WIFI_SETTINGS", "") StartActivity(StartIntent)