1 package de
.rmdir
.ms2debounce
;
3 import android
.content
.BroadcastReceiver
;
4 import android
.content
.Context
;
5 import android
.content
.Intent
;
7 public class DebounceBootReceiver
extends BroadcastReceiver
{
9 public void onReceive(Context context
, Intent intent
) {
10 if("android.intent.action.BOOT_COMPLETED".equals(intent
.getAction())) {
11 DebounceModuleHelper module
= new DebounceModuleHelper(context
);
13 if (module
.get_on_boot() && module
.is_safe_to_load()) {
14 context
.startService(new Intent(context
, DebounceBootService
.class));