</intent-filter>
</activity>
<service android:name=".DebounceService"/>
+ <receiver android:name=".DebounceBootReceiver">
+ <intent-filter>
+ <action android:name="android.intent.action.BOOT_COMPLETED" />
+ <category android:name="android.intent.category.HOME" />
+ </intent-filter>
+ </receiver>
</application>
</manifest>
--- /dev/null
+package de.rmdir.ms2debounce;
+
+import android.content.BroadcastReceiver;
+import android.content.Context;
+import android.content.Intent;
+
+public class DebounceBootReceiver extends BroadcastReceiver{
+ @Override
+ public void onReceive(Context context, Intent intent) {
+ if("android.intent.action.BOOT_COMPLETED".equals(intent.getAction())) {
+ Intent debouncesvc = new Intent(context, DebounceService.class);
+ context.startService(debouncesvc);
+ }
+ }
+}