Back to project page MovisensGattSensorExample.
The source code is released under:
GNU General Public License
If you think the Android project MovisensGattSensorExample 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.movisens.gattsensorexample.receivers; // w ww. ja v a 2 s.com import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.util.Log; import com.movisens.gattsensorexample.application.App; public class SystemStateReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { if (Intent.ACTION_SHUTDOWN.equals(intent.getAction())) { Log.d("SystemStateReceiver", "Shutdown"); App.app().shutDown(); } else if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) { Log.d("SystemStateReceiver", "BootComplete"); } } }