package com.google.samples.mysample;

import android.service.headless.HomeService;
import android.util.Log;
import android.view.InputEvent;

/**
 * Implement your device logic here.
 */
public class MyHomeService extends HomeService{
    private static final String TAG = "MyHomeService";

    @Override
    public void onCreate() {
        Log.d(TAG, "Headless service created");
    }

    @Override
    public void onInputEvent(InputEvent event) {
        Log.d(TAG, "Input event received: " + event);
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        Log.d(TAG, "onDestroy");
    }
}

@@ -225,16 +225,17 @@
 eService
+ 
 %7B%0A    pr
@@ -510,116 +510,6 @@
  %7D%0A%0A
-    @Override%0A    public void onDestroy() %7B%0A        super.onDestroy();%0A        Log.d(TAG, %22onDestroy%22);%0A    %7D%0A
 %7D%0A

Fix minor issues on MyHomeService