Category "android-connectivitymanager"

How to check android mobile network mode setting state "Always on" or "Auto" or "Always off" programmatically?

I need to get mobile network setting state in WearOS: "Always on" or "Auto" or "Always off". Exactly need to differentiate these states in code maybe there is a

Networkcallback called multiple times even after unregistering

In my android-app I need to call an API via my Wi-Fi connection which doesn't have an internet connection, even though cellular data is enabled. I manage to han