I am having some problem in my simple app. In my code I am using a deprecated code so I read this documentation and I don't know how can I get the wifi status using this function getNetworkInfo (Network network)
Before my code looks like this to identify its state.
boolean wifi = conman.getNetworkInfo(ConnectivityManager.TYPE_WIFI).isConnectedOrConnecting();
Can you help me with this?
In using this method getNetworkInfo (Network network)
what parameter should I put in order to get the state of the wifi?