@@ -0,0 +1,953 @@
+package com.ardrumoid;%0A%0Aimport com.facebook.drawee.backends.pipeline.Fresco;%0Aimport com.hoho.android.usbserial.driver.UsbSerialPort;%0A%0Aimport android.app.Application;%0Aimport android.content.Context;%0Aimport android.hardware.usb.UsbDeviceConnection;%0A%0Apublic class MainApp extends Application %7B%0A%0A%09public static double syncTime = 0.075;%0A%0A%09private static Context mContext;%0A%09private static UsbSerialPort mPort = null;%0A%09private static UsbDeviceConnection mConnection = null;%0A%0A%09@Override%0A%09public void onCreate() %7B%0A%09%09super.onCreate();%0A%09%09mContext = this;%0A%09%09Fresco.initialize(mContext);%0A%09%7D%0A%09%0A%09public static Context getContext() %7B%0A%09%09return mContext;%0A%09%7D%0A%0A%09public static UsbSerialPort getPort() %7B%0A%09%09return mPort;%0A%09%7D%0A%0A%09public static void setPort(UsbSerialPort port) %7B%0A%09%09mPort = port;%0A%09%7D%0A%0A%09public static void setConnection(UsbDeviceConnection connection) %7B%0A%09%09mConnection = connection;%0A%09%7D%0A%0A%09public static UsbDeviceConnection getConnection() %7B%0A%09%09return mConnection;%0A%09%7D%0A%0A%7D%0A

Create MainApp.java