CeccoCQ CeccoCQ - 4 years ago 165
Android Question

Check INTENT internet connection

There is an Android

ACTION_XXX that notify me when Internet Connection is available?
I would to instantiate a
that notify my application when user enable Internet Connection (by wifi, by GSM, etc...)

Could anyone help me?

Answer Source
<receiver android:name=".YOURRECEIVER">
      <action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download