2

How to check programmatically if mobile data switch is on or off.

I know how to check if data connection is on or not. But I don't want that.

I want to check if user have switch on that toggle switch or check box to start data connection.

Is there any event or broadcast after user toggles that switch in Settings

Because it takes 5-10 seconds to actually start data connection after enabling that switch or check-box.

Shirish Herwade
  • 11,461
  • 20
  • 72
  • 111
  • Pre-5.0 you could use reflection and an undocumented API to do this, but on 5.0 it doesn't work anymore. http://stackoverflow.com/questions/8224097/how-to-check-if-mobile-network-is-enabled-disabled – Daniel Nugent May 08 '15 at 19:17
  • i tried that reflection solution on 4.4.2 samsung tab, it wasn't working. by d ve, thanks – Shirish Herwade May 08 '15 at 19:22

0 Answers0