I am using the following to load "android.settings.WIFI_SETTINGS".
In my "Starter" service, I do monitor the Connectivity Changed and write this to a variable: Main.WiFiIsConnected.
Once the user has set the WIFI_SETTINGS and device is connected and IP address has been obtained Main.WiFiIsConnected = True.
Is there a way that I can automatically CLOSE the "android.settings.WIFI_SETTINGS" activity?
I have found that if I close the activity too soon (with the "Back" button), the app bombs.
B4X:
Sub imgWiFiAvail_Click
Dim i As Intent
i.Initialize("android.settings.WIFI_SETTINGS", "")
StartActivity(i)
End Sub
Once the user has set the WIFI_SETTINGS and device is connected and IP address has been obtained Main.WiFiIsConnected = True.
Is there a way that I can automatically CLOSE the "android.settings.WIFI_SETTINGS" activity?
I have found that if I close the activity too soon (with the "Back" button), the app bombs.