1

I am looking for a way to make my Android app

do something every time there is a change in mobile network,

i.e. going from 2g to 3g, 4g to wifi etc.

All I can find for broadcast receivers are the ones that execute on loss or gain of network connection.

Ganapathy C
  • 5,989
  • 5
  • 42
  • 75
Frank Bozzo
  • 15,033
  • 6
  • 25
  • 29

1 Answers1

1

Have you looked into using a PhoneStateListener? The LISTEN_DATA_CONNECTION_STATE and LISTEN_SERVICE_STATE flags look promising.

Wesley Wiser
  • 9,491
  • 4
  • 50
  • 69