package com.example.androidthings.myproject;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;

import com.google.android.things.contrib.driver.pwmservo.Servo;
import com.google.android.things.pio.Gpio;

/**
 * Skeleton of the main Android Things activity. Implement your device's logic
 * in this class.
 * <p>
 * Android Things peripheral APIs are accessible through the class
 * PeripheralManagerService. For example, the snippet below will open a GPIO pin and
 * set it to HIGH:
 * <p>
 * <pre>{@code
 * PeripheralManagerService service = new PeripheralManagerService();
 * mLedGpio = service.openGpio("BCM6");
 * mLedGpio.setDirection(Gpio.DIRECTION_OUT_INITIALLY_LOW);
 * mLedGpio.setValue(true);
 * }</pre>
 * <p>
 * For more complex peripherals, look for an existing user-space driver, or implement one if none
 * is available.
 */
public class MainActivity extends Activity {

    private static final String TAG = "Things";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Log.d(TAG, "Android Things project is ready!");

        // Initialize your objects here
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        // Free / Close your resources here
    }
}

@@ -251,15 +251,9 @@
  of 
-the mai
+a
 n An
@@ -278,56 +278,8 @@
 ity.
- Implement your device's logic%0A * in this class.
 %0A * 
@@ -369,23 +369,16 @@
 lManager
-Service
 . For ex
@@ -492,29 +492,18 @@
 ager
-Service service = new
+ manager =
  Per
@@ -520,13 +520,18 @@
 ager
-Servi
+.getInstan
 ce()
@@ -550,15 +550,15 @@
 o = 
-service
+manager
 .ope
@@ -793,16 +793,153 @@
 ilable.%0A
+ *%0A * @see %3Ca href=%22https://github.com/androidthings/contrib-drivers#readme%22%3Ehttps://github.com/androidthings/contrib-drivers#readme%3C/a%3E%0A
  */%0Apubl

Update MainActivity comment to the latest version in the template