Back to project page wifi-auto-forget.
The source code is released under:
GNU General Public License
If you think the Android project wifi-auto-forget listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.cebesius.wifiautoforget.receiver; //from w ww.ja va 2 s.c om import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.net.ConnectivityManager; import android.util.Log; import com.cebesius.wifiautoforget.service.ConnectivityChangeService; public class ConnectivityChangeReceiver extends BroadcastReceiver { private static final String TAG = ConnectivityChangeReceiver.class.getSimpleName(); public ConnectivityChangeReceiver() { } @Override public void onReceive(Context context, Intent intent) { if (intent == null || !ConnectivityManager.CONNECTIVITY_ACTION.equals(intent.getAction())) { return; } ConnectivityChangeService.start(context, intent); } }