Merge pull request #4 from Affectiva/minor_fixes

Cosmic fixes
This commit is contained in:
Abdelrahman Mahmoud 2015-09-13 22:16:39 -04:00
commit 1b984f57dc
11 changed files with 9 additions and 28 deletions

View file

@ -9,7 +9,7 @@ android {
minSdkVersion 16 minSdkVersion 16
targetSdkVersion 22 targetSdkVersion 22
versionCode 14 versionCode 14
versionName "1.0.14b" versionName "2.0.0"
} }
buildTypes { buildTypes {
release { release {

View file

@ -16,8 +16,6 @@ import android.util.Log;
import android.view.SurfaceHolder; import android.view.SurfaceHolder;
import android.view.SurfaceView; import android.view.SurfaceView;
import com.affectiva.android.affdex.sdk.detector.Face;
/** /**
* This class contains a SurfaceView and its own thread that draws to it. * This class contains a SurfaceView and its own thread that draws to it.

View file

@ -20,13 +20,6 @@ import android.widget.LinearLayout;
import android.widget.ProgressBar; import android.widget.ProgressBar;
import android.widget.RelativeLayout; import android.widget.RelativeLayout;
import android.widget.TextView; import android.widget.TextView;
import android.widget.Toast;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.InputStreamReader;
import java.lang.reflect.Method;
import java.util.List;
import com.affectiva.android.affdex.sdk.Frame; import com.affectiva.android.affdex.sdk.Frame;
import com.affectiva.android.affdex.sdk.Frame.ROTATE; import com.affectiva.android.affdex.sdk.Frame.ROTATE;
@ -34,6 +27,9 @@ import com.affectiva.android.affdex.sdk.detector.CameraDetector;
import com.affectiva.android.affdex.sdk.detector.Detector; import com.affectiva.android.affdex.sdk.detector.Detector;
import com.affectiva.android.affdex.sdk.detector.Face; import com.affectiva.android.affdex.sdk.detector.Face;
import java.lang.reflect.Method;
import java.util.List;
/* /*
* AffdexMe is an app that demonstrates the use of the Affectiva Android SDK. It uses the * AffdexMe is an app that demonstrates the use of the Affectiva Android SDK. It uses the
* front-facing camera on your Android device to view, process and analyze live video of your face. * front-facing camera on your Android device to view, process and analyze live video of your face.
@ -63,7 +59,7 @@ import com.affectiva.android.affdex.sdk.detector.Face;
* - Build the project * - Build the project
* - Run the app on an Android device with a front-facing camera * - Run the app on an Android device with a front-facing camera
* *
* Copyright (c) 2014 Affectiva. All rights reserved. * Copyright (c) 2015 Affectiva. All rights reserved.
*/ */
public class MainActivity extends Activity public class MainActivity extends Activity

View file

@ -8,7 +8,7 @@ import android.graphics.Paint;
import android.graphics.Typeface; import android.graphics.Typeface;
import android.util.AttributeSet; import android.util.AttributeSet;
import android.view.View; import android.view.View;
import java.lang.Math;
import java.lang.reflect.Method; import java.lang.reflect.Method;
/** /**

View file

@ -20,10 +20,10 @@ import android.widget.Button;
import android.widget.GridLayout; import android.widget.GridLayout;
import android.widget.TextView; import android.widget.TextView;
import static com.affectiva.affdexme.MainActivity.NUM_METRICS_DISPLAYED;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import static com.affectiva.affdexme.MainActivity.NUM_METRICS_DISPLAYED;
/** /**
* A fragment to display a graphical menu which allows the user to select which metrics to display. * A fragment to display a graphical menu which allows the user to select which metrics to display.
* *

View file

@ -1,12 +1,9 @@
package com.affectiva.affdexme; package com.affectiva.affdexme;
import android.app.Activity; import android.app.Activity;
import android.content.ContentResolver;
import android.content.Context;
import android.content.res.Resources; import android.content.res.Resources;
import android.graphics.Color; import android.graphics.Color;
import android.net.Uri; import android.net.Uri;
import android.util.TypedValue;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.TextureView; import android.view.TextureView;
import android.view.View; import android.view.View;

View file

@ -1,7 +1,5 @@
package com.affectiva.affdexme; package com.affectiva.affdexme;
import java.lang.StringBuilder;
/** /**
* A class containing: * A class containing:
* -enumerations representing the Emotion and Expressions featured in the Affectiva SDK. * -enumerations representing the Emotion and Expressions featured in the Affectiva SDK.

View file

@ -5,7 +5,6 @@ import android.graphics.drawable.ColorDrawable;
import android.os.Bundle; import android.os.Bundle;
import android.preference.PreferenceActivity; import android.preference.PreferenceActivity;
import android.preference.PreferenceFragment; import android.preference.PreferenceFragment;
import android.R.id.*;
import android.view.MenuItem; import android.view.MenuItem;
import java.util.List; import java.util.List;

View file

@ -3,9 +3,6 @@ package com.affectiva.errorreporting;
import android.app.Application; import android.app.Application;
import android.content.Intent; import android.content.Intent;
/**
* Created by Alan on 8/21/2015.
*/
public class CustomApplication extends Application { public class CustomApplication extends Application {
static volatile boolean wasErrorActivityStarted = false; static volatile boolean wasErrorActivityStarted = false;

View file

@ -1,7 +1,6 @@
package com.affectiva.errorreporting; package com.affectiva.errorreporting;
import android.app.Activity; import android.app.Activity;
import android.content.DialogInterface;
import android.content.Intent; import android.content.Intent;
import android.os.Bundle; import android.os.Bundle;
import android.view.View; import android.view.View;
@ -13,9 +12,6 @@ import com.affectiva.affdexme.R;
import java.text.DateFormat; import java.text.DateFormat;
import java.util.Date; import java.util.Date;
/**
* Created by Alan on 8/21/2015.
*/
public class ErrorReporter extends Activity implements View.OnClickListener { public class ErrorReporter extends Activity implements View.OnClickListener {
String errorMessage; String errorMessage;

0
AffdexMe/gradlew vendored Normal file → Executable file
View file