It is common for our Android phone to have WiFi activatedso that when there is a known connection, such as home or work, the phone will automatically connect to it. This is something very comfortable for the user, although in the end it ends up wasting a lot of energy in this way, in an unnecessary way, to tell the truth.
In addition, there are times when we can forget to connect to that network or when we leave we still leave the WiFi on Android connected. They are actions that in many cases we forget, but that only help us to be wasting the battery in the phone in a somewhat useless way. Luckily, there are ways to make the WiFi turn on and off automatically.
In this case we will make use of applications for our Android phone. We can download them in the normal way in the Play Store and they are dedicated to making the wireless connection on the device turn off and on automatically. In a way that is efficient, it does not waste battery and we have it activated only when it is really necessary. A most comfortable option for users.
Wi-Fi Car
This first application is one of the best known in this field, in addition to having good ratings in the Play Store by users. It is an application that will help us to connect WiFi on Android automatically to those networks that we have established as secure. So we prevent it from connecting to a network without our having controlled it.
It also allows us to disconnect the WiFi on Android when we are not in the area of ​​any of these networks. It is an application of the most interesting in that sense, but that also stands out for its ease of use. Since it has a very simple interface to use, in addition to giving us many customization options, such as making it run when we turn on the phone, among others.
A good way to avoid connecting to a WiFi network that is not secure, making us only connect when it is really necessary. Furthermore, it supposes a very simple way to save battery on our Android phone, which is also another important aspect in this case. Downloading this application is free. There are ads inside, but in general they are not too invasive, which does not affect the experience of using it too much.
ITTT

IFTT is an application that allows us to schedule tasks on our Android phone, in addition to being able to automate some. Therefore, we can use it so that the WiFi on the phone will automatically turn off and on at the desired time. We can make this happen based on location or location.
Therefore, when our Android phone detects the WiFi network to which we want to connect, the connection is activated on the phone automatically, without us having to do anything. When we leave that place, it will be detected that we are no longer close to this network, so that it will be automatically deactivated as well. It allows us in this simple way to save battery on our phone.