This is an example of Automate Flow. To learn more about Automate for Android phones, click here. It is always a good idea to disable the Wifi function of your Android phone until you want to connect to a WiFi network. This will help to conserve battery usage, and also prevent your phone from automatically get connected to certain open WiFi without your aware, which might be used to hack in your