Back to project page NoteZap.
The source code is released under:
MIT License
If you think the Android project NoteZap 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.outerthoughts.notezap; //from w ww . ja va 2s . c om import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.util.Log; public class NetworkStateChangeReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { Log.i("NoteZap", "Network state changed. Thread id: " + Thread.currentThread().getId() + ". Network is: " + (NetworkChecker.isNetworkAvailable(context)?"available":"not available")); Intent sendZap = new Intent(context, BatchedSendService.class); sendZap.setAction(BatchedSendService.ACTION_CHECK_NETWORK); context.startService(sendZap); } }