Is there an Android Intent ACTION_XXX
that notifies me when an Internet Connection is available?
I want to instantiate a BroadcastReceiver
that notifies my application when a user enables Internet Connection (by wifi, by GSM, etc.)
Could anyone help me?
<receiver android:name=".YOURRECEIVER">
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
</intent-filter>
</receiver>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />