Skip to content

Commit a5fcd0e

Browse files
committed
clean up. reorder activities
1 parent f3be575 commit a5fcd0e

File tree

2 files changed

+10
-19
lines changed

2 files changed

+10
-19
lines changed

FaceTracker/app/build.gradle

-11
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
apply plugin: 'com.android.application'
2-
3-
def cpuType = 'arm64-v8a'
4-
52
// Output directory in the local directory for packaging into the APK.
63

74
android {
@@ -25,15 +22,7 @@ android {
2522
cmake {
2623
cppFlags "-frtti -fexceptions -std=c++11"
2724
abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
28-
//abiFilters "${cpuType}"
2925
arguments "-DANDROID_STL=gnustl_shared"
30-
//arguments "-DANDROID_STL=c++_shared"
31-
// AL: arguments "-DANDROID_STL=c++_shared", "-DBUILD_opencv_apps:BOOL=ON", "-DBUILD_SHARED_LIBS:BOOL=ON"
32-
// Passes optional arguments to CMake.
33-
//arguments "-DANDROID_ARM_NEON=TRUE", "-DANDROID_TOOLCHAIN=clang"
34-
35-
// Sets a flag to enable format macro constants for the C compiler.
36-
//cFlags "-D__STDC_FORMAT_MACROS"
3726
}
3827
}
3928
signingConfig signingConfigs.config

FaceTracker/app/src/main/AndroidManifest.xml

+10-8
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,22 @@
3232
android:name="com.google.android.gms.vision.DEPENDENCIES"
3333
android:value="face" />
3434

35+
3536
<activity
36-
android:name="tensorflow.detector.spc.CameraActivityMain"
37+
android:name="com.google.android.gms.samples.vision.face.facetracker.FaceTrackerActivity"
3738
android:icon="@drawable/icon"
38-
android:label="@string/app_name"
39-
android:theme="@style/AppTheme">
39+
android:label="Face Recognition"
40+
android:theme="@style/Theme.AppCompat.NoActionBar"
41+
android:screenOrientation="fullSensor">
4042
<intent-filter>
4143
<action android:name="android.intent.action.MAIN" />
4244

4345
<category android:name="android.intent.category.LAUNCHER" />
4446
</intent-filter>
4547
</activity>
48+
4649
<activity
47-
android:name="com.google.android.gms.samples.vision.face.facetracker.FaceTrackerActivity"
50+
android:name="org.opencv.android.facetracker.OpenCvActivity"
4851
android:icon="@drawable/icon"
4952
android:label="Face Recognition"
5053
android:theme="@style/Theme.AppCompat.NoActionBar"
@@ -57,11 +60,10 @@
5760
</activity>
5861

5962
<activity
60-
android:name="org.opencv.android.facetracker.OpenCvActivity"
63+
android:name="tensorflow.detector.spc.CameraActivityMain"
6164
android:icon="@drawable/icon"
62-
android:label="Face Recognition"
63-
android:theme="@style/Theme.AppCompat.NoActionBar"
64-
android:screenOrientation="fullSensor">
65+
android:label="@string/app_name"
66+
android:theme="@style/AppTheme">
6567
<intent-filter>
6668
<action android:name="android.intent.action.MAIN" />
6769

0 commit comments

Comments
 (0)