Inx
Inx

Reputation: 2384

whats the mobilenetwork-manager equivalent of the WifiManager

I need to add an action to an IntentFilter for detecting changes in the mobile-network.. so basically what I need is an equivalent of WifiManager.SUPPLICANT_STATE_CHANGED_ACTION but for the MobileNetwork. but I'm not really sure what the class I'm looking for is called. Any ideas?

Upvotes: 0

Views: 66

Answers (1)

sandrstar
sandrstar

Reputation: 12643

Seems ConnectivityManager would help. It has some description in the documentation. Briefly, I think You need to:

  • Register BroadcastReceiver with ConnectivityManager.CONNECTIVITY_ACTION
  • Check changed network(or all connections)

Upvotes: 1

Related Questions