In my settings I want to have a switch called "use Mobile Data". As the name implies I want to be able to NOT use Mobile Data, but still use WiFi if available. How can I do that?
I found a couple related questions but none that's really answers it. I don't want to check if I'm using mobile data, I just don't want to use it.
Thank you very much for your time and assistance in this matter.
Edit:
I know there is a way to check if my app is connected via mobile data and if thats the case I don't call my code. But I would have to check this multiple times. I wanted to know if there is a way to completely disconnect from mobile data.