Android Question launcher - Check wifi status on boot

Semendey

Member
I am developing a launcher application.
The application should completely replace the desktop and it contains UltimateWebView1 and should load the URL immediately after launch.
The problem is that for some reason the page does not load, or rather there is no Wifi connection.
If I go to the device settings after launch, the Wifi module is in the off state, and turning it on does not start scanning and connecting.
I set a timer to start loading the URL and it worked, my application starts and loads the URL and Wifi is connected As I understand it, the application accesses the network very early, at a time when the wifi module has not yet loaded

How can I wait in the application without delay until everything is loaded and the connection is established?

Thanks for any help
 

Semendey

Member
Thank you.
But I still don't understand what exactly needs to be checked in the block: try to connect
Because as soon as I access WiFi to check the connection, the device blocks it and it no longer works
 
Upvote 0

Semendey

Member
I tried checking the connection via WiFi libraries and just sending an HTTP request.

As soon as I include this in the code WiFi no longer helps to connect to the network, even if I enable it manually and scanning for networks does not happen
 
Upvote 0

Semendey

Member
I have concerns that using an infinite loop to check the connection may cause the application to freeze and not be able to start, and since it will be the default launcher application, the device will not start at all.

The user should be able to go to the application settings and from there to the system settings to configure the network connection.
At the moment, even before the main application code is launched, a button appears on the screen to go to the application settings, this button hangs on the screen for 30 seconds and then the application is fully loaded, the user can go to the settings during this time
 
Upvote 0
Top