Hello,
I am facing a problem I can not solve : I am in need of detecting if the phone is connected to its network and warn if the connection is lost.
The only way I had found was to use a service and use PhoneEvents then ConnectivityChanged event. But this seems only to catch the lost of connection when the data are on only.
Using a broadcast receiver on android.net.conn.CONNECTIVITY_CHANGE won't return the "reason" any time.
Please, do you know a way to detect if the phone is connected to its network without data ?
Many thanks
I am facing a problem I can not solve : I am in need of detecting if the phone is connected to its network and warn if the connection is lost.
The only way I had found was to use a service and use PhoneEvents then ConnectivityChanged event. But this seems only to catch the lost of connection when the data are on only.
Using a broadcast receiver on android.net.conn.CONNECTIVITY_CHANGE won't return the "reason" any time.
Please, do you know a way to detect if the phone is connected to its network without data ?
Many thanks