By means of this extension we can check if the internet data comes to us through WiFi or through the data network (Mobile data. Cellular). We can also get if "Mobile data" is enabled.
I have use the nomenclature "Transport" and "Cellular" because it is the one that uses this class (TRANSPORT_CELLULAR).
There are other similar extensions but they don't work with API 29 as they seem to use NetworkInfo | Android Developers it was deprecated in API level 29.
- Suggestion.
Could someone try this extension on Android 10, Android 11, ...
The test app (attached below) checks each of the states:
(WiFiTransport, CellularEnabled, and CellularTransport) from a clock timer event and reports the results with a Notifier Alert.
With WiFi off and Cellular data on, I get the following. First, with the app screen active, the alert makes sense: the transport is Cellular and not WiFi and Cellular is enabled: