How do you detect if device is using mobile data or Wi-Fi?

I need to make an app that only works on Wi-Fi, and if it is using mobile data only, then it should open a notifier message dialogue. How can I do it?

You might try this:


Yep this worked, thanks!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.