Back to project page hts-cycle.
The source code is released under:
GNU General Public License
If you think the Android project hts-cycle 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 it.uniroma2.wifionoff; /*ww w . ja va 2s. c o m*/ import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.util.Log; public class ShutDownReceiver extends BroadcastReceiver { private static final String Log_tag = "ShutDownReceiver"; @Override public void onReceive(Context context, Intent intent) { // TODO Auto-generated method stub OnOffService.isOff(); ServiceCall ser=ServiceCall.getInstance(context); ser.getCTX().unregisterReceiver(ser.netReceiver); context.sendBroadcast(new Intent(Setting.TIMEOUT_OCCURRED)); Log.w(Log_tag,"B Received"); } }