I have an application that I want to use to get a report on the status of the connection after a certain period of time. Even when I’m connected or connected to a Wi-Fi network, I would like to know if data access via the cellular network is turned on. This means that if after checking I can gracefully disconnect from the Wi-Fi network, knowing that there is an available cellular connection to which the device will be connected.
Existing Accessibility methods will provide me with information about cellular availability only when you are connected to it, and there is not much information about receiving this data before actually connecting to the interface.
Look for a similar solution available in android as described in this link .
EXPLANATIONS
I do NOT see if my device has cellular capabilities. I am trying to establish whether the user was enabled / disabled access to data via the mobile network, and would like to know this information even if I am connected to Wi-Fi. The user can enable or disable this by selecting Settings.
source
share