Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8307a0c6 authored by Joe Onorato's avatar Joe Onorato
Browse files

Get Sketch compiling.

Add an Android.mk.
Android compiles with Java5, which doesn't let you put @Override on
interface methods.
parent 981980e5
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_SRC_FILES := $(call all-subdir-java-files)

LOCAL_PACKAGE_NAME := Sketch

include $(BUILD_PACKAGE)
+0 −5
Original line number Diff line number Diff line
@@ -71,7 +71,6 @@ public class GestureEntryDemo extends Activity {
        mResult = (Spinner) findViewById(R.id.spinner);
        mResult.setOnItemSelectedListener(new OnItemSelectedListener() {

            @Override
            public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
                // TODO Auto-generated method stub
                // correct the recognition result by adding the new example
@@ -83,7 +82,6 @@ public class GestureEntryDemo extends Activity {
                }
            }
  
            @Override
            public void onNothingSelected(AdapterView<?> parent) {
              // TODO Auto-generated method stub
              
@@ -96,17 +94,14 @@ public class GestureEntryDemo extends Activity {
        mView.cacheGesture(false);
        mView.setFadingOut(false);
        mView.addGestureListener(new GestureListener() {
            @Override
            public void onFinishGesture(GesturePad patch, MotionEvent event) {
                // TODO Auto-generated method stub
                recognize(patch.getCurrentGesture());
            }
            @Override
            public void onGesture(GesturePad patch, MotionEvent event) {
              // TODO Auto-generated method stub
              
            }
            @Override
            public void onStartGesture(GesturePad patch, MotionEvent event) {
              // TODO Auto-generated method stub
              
+0 −5
Original line number Diff line number Diff line
@@ -87,7 +87,6 @@ public class GestureLibViewer extends Activity {
        }
        
        mResult.setOnItemSelectedListener(new OnItemSelectedListener() {
            @Override
            public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
                // TODO Auto-generated method stub
                mSamples = mRecognizer.getGestures(
@@ -103,7 +102,6 @@ public class GestureLibViewer extends Activity {
                mView.invalidate();
            }
  
            @Override
            public void onNothingSelected(AdapterView<?> parent) {
              // TODO Auto-generated method stub
              
@@ -113,7 +111,6 @@ public class GestureLibViewer extends Activity {
        
        Button remove = (Button)this.findViewById(R.id.remove);
        remove.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View v) {
                // TODO Auto-generated method stub
                if (mSamples.isEmpty())
@@ -154,7 +151,6 @@ public class GestureLibViewer extends Activity {
        
        Button next = (Button)this.findViewById(R.id.next);
        next.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View v) {
                // TODO Auto-generated method stub
                if (mCurrentGestureIndex >= mSamples.size()-1)
@@ -172,7 +168,6 @@ public class GestureLibViewer extends Activity {

        Button previous = (Button)this.findViewById(R.id.previous);
        previous.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View v) {
                // TODO Auto-generated method stub
                if (mCurrentGestureIndex >= 1 &&
+0 −1
Original line number Diff line number Diff line
@@ -66,7 +66,6 @@ public class NearestNeighbor extends Classifier {
    
        
        Collections.sort(list, new Comparator<Prediction>() {
            @Override
            public int compare(Prediction object1, Prediction object2) {
                // TODO Auto-generated method stub
                double score1 = object1.score;