- Modify `/app/src/main/AndroidManifest.xml` to enable full-screen mode, set up
a correct screen orientation and allow to use a camera.
-@include android/mobilenet-objdetect/AndroidManifest.xml
+@include android/mobilenet-objdetect/gradle/AndroidManifest.xml
- Replace content of `app/src/main/java/org/opencv/samples/opencv_mobilenet/MainActivity.java`:
@include android/mobilenet-objdetect/src/org/opencv/samples/opencv_mobilenet/MainActivity.java
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="org.opencv.samples.cameracalibration"
- android:versionCode="301"
- android:versionName="3.01" >
-
- <application
- android:label="@string/app_name"
- android:icon="@drawable/icon">
-
- <activity android:name="CameraCalibrationActivity"
- android:label="@string/app_name"
- android:screenOrientation="landscape"
- android:configChanges="keyboardHidden|orientation">
- <intent-filter>
- <action android:name="android.intent.action.MAIN" />
- <category android:name="android.intent.category.LAUNCHER" />
- </intent-filter>
- </activity>
- </application>
-
- <supports-screens android:resizeable="true"
- android:smallScreens="true"
- android:normalScreens="true"
- android:largeScreens="true"
- android:anyDensity="true" />
-
- <uses-sdk android:minSdkVersion="8" />
-
- <uses-permission android:name="android.permission.CAMERA"/>
-
- <uses-feature android:name="android.hardware.camera" android:required="false"/>
- <uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
- <uses-feature android:name="android.hardware.camera.front" android:required="false"/>
- <uses-feature android:name="android.hardware.camera.front.autofocus" android:required="false"/>
-
-</manifest>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="org.opencv.samples.colorblobdetect"
- android:versionCode="301"
- android:versionName="3.01">
-
- <application
- android:label="@string/app_name"
- android:icon="@drawable/icon"
- android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
-
- <activity android:name="ColorBlobDetectionActivity"
- android:label="@string/app_name"
- android:screenOrientation="landscape"
- android:configChanges="keyboardHidden|orientation">
- <intent-filter>
- <action android:name="android.intent.action.MAIN" />
- <category android:name="android.intent.category.LAUNCHER" />
- </intent-filter>
- </activity>
- </application>
-
- <supports-screens android:resizeable="true"
- android:smallScreens="true"
- android:normalScreens="true"
- android:largeScreens="true"
- android:anyDensity="true" />
-
- <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="11" />
-
- <uses-permission android:name="android.permission.CAMERA"/>
-
- <uses-feature android:name="android.hardware.camera" android:required="false"/>
- <uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
- <uses-feature android:name="android.hardware.camera.front" android:required="false"/>
- <uses-feature android:name="android.hardware.camera.front.autofocus" android:required="false"/>
-
-</manifest>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="org.opencv.samples.facedetect"
- android:versionCode="301"
- android:versionName="3.01">
-
- <application
- android:label="@string/app_name"
- android:icon="@drawable/icon">
-
- <activity android:name="FdActivity"
- android:label="@string/app_name"
- android:screenOrientation="landscape"
- android:configChanges="keyboardHidden|orientation">
- <intent-filter>
- <action android:name="android.intent.action.MAIN" />
- <category android:name="android.intent.category.LAUNCHER" />
- </intent-filter>
- </activity>
- </application>
-
- <supports-screens android:resizeable="true"
- android:smallScreens="true"
- android:normalScreens="true"
- android:largeScreens="true"
- android:anyDensity="true" />
-
- <uses-sdk android:minSdkVersion="8" />
-
- <uses-permission android:name="android.permission.CAMERA"/>
-
- <uses-feature android:name="android.hardware.camera" android:required="false"/>
- <uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
- <uses-feature android:name="android.hardware.camera.front" android:required="false"/>
- <uses-feature android:name="android.hardware.camera.front.autofocus" android:required="false"/>
-
-</manifest>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="org.opencv.samples.imagemanipulations"
- android:versionCode="301"
- android:versionName="3.01">
-
- <application
- android:label="@string/app_name"
- android:icon="@drawable/icon">
-
- <activity android:name="ImageManipulationsActivity"
- android:label="@string/app_name"
- android:screenOrientation="landscape"
- android:configChanges="keyboardHidden|orientation">
- <intent-filter>
- <action android:name="android.intent.action.MAIN" />
- <category android:name="android.intent.category.LAUNCHER" />
- </intent-filter>
- </activity>
- </application>
-
- <supports-screens android:resizeable="true"
- android:smallScreens="true"
- android:normalScreens="true"
- android:largeScreens="true"
- android:anyDensity="true" />
-
- <uses-sdk android:minSdkVersion="8" />
-
- <uses-permission android:name="android.permission.CAMERA"/>
-
- <uses-feature android:name="android.hardware.camera" android:required="false"/>
- <uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
- <uses-feature android:name="android.hardware.camera.front" android:required="false"/>
- <uses-feature android:name="android.hardware.camera.front.autofocus" android:required="false"/>
-
-</manifest>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="org.opencv.samples.opencv_mobilenet">
-
- <application
- android:allowBackup="true"
- android:icon="@mipmap/ic_launcher"
- android:label="@string/app_name"
- android:roundIcon="@mipmap/ic_launcher_round"
- android:supportsRtl="true"
- android:theme="@style/Theme.AppCompat.NoActionBar"> <!--Full screen mode-->
- <activity android:name=".MainActivity"
- android:screenOrientation="landscape"> <!--Screen orientation-->
- <intent-filter>
- <action android:name="android.intent.action.MAIN" />
- <category android:name="android.intent.category.LAUNCHER" />
- </intent-filter>
- </activity>
- </application>
-
- <!--Allow to use a camera-->
- <uses-permission android:name="android.permission.CAMERA"/>
- <uses-feature android:name="android.hardware.camera" android:required="false"/>
- <uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
- <uses-feature android:name="android.hardware.camera.front" android:required="false"/>
- <uses-feature android:name="android.hardware.camera.front.autofocus" android:required="false"/>
-
-</manifest>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="org.opencv.samples.tutorial1"
- android:versionCode="301"
- android:versionName="3.01">
-
- <application
- android:label="@string/app_name"
- android:icon="@drawable/icon"
- android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
-
- <activity android:name="Tutorial1Activity"
- android:label="@string/app_name"
- android:screenOrientation="landscape"
- android:configChanges="keyboardHidden|orientation">
- <intent-filter>
- <action android:name="android.intent.action.MAIN" />
- <category android:name="android.intent.category.LAUNCHER" />
- </intent-filter>
- </activity>
- </application>
-
- <supports-screens android:resizeable="true"
- android:smallScreens="true"
- android:normalScreens="true"
- android:largeScreens="true"
- android:anyDensity="true" />
-
- <uses-sdk android:minSdkVersion="8" />
-
- <uses-permission android:name="android.permission.CAMERA"/>
-
- <uses-feature android:name="android.hardware.camera" android:required="false"/>
- <uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
- <uses-feature android:name="android.hardware.camera.front" android:required="false"/>
- <uses-feature android:name="android.hardware.camera.front.autofocus" android:required="false"/>
-
-</manifest>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="org.opencv.samples.tutorial2"
- android:versionCode="301"
- android:versionName="3.01">
-
- <application
- android:label="@string/app_name"
- android:icon="@drawable/icon">
-
- <activity android:name="Tutorial2Activity"
- android:label="@string/app_name"
- android:screenOrientation="landscape"
- android:configChanges="keyboardHidden|orientation">
- <intent-filter>
- <action android:name="android.intent.action.MAIN" />
- <category android:name="android.intent.category.LAUNCHER" />
- </intent-filter>
- </activity>
- </application>
-
- <supports-screens android:resizeable="true"
- android:smallScreens="true"
- android:normalScreens="true"
- android:largeScreens="true"
- android:anyDensity="true" />
-
- <uses-sdk android:minSdkVersion="8" />
-
- <uses-permission android:name="android.permission.CAMERA"/>
-
- <uses-feature android:name="android.hardware.camera" android:required="false"/>
- <uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
- <uses-feature android:name="android.hardware.camera.front" android:required="false"/>
- <uses-feature android:name="android.hardware.camera.front.autofocus" android:required="false"/>
-
-</manifest>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="org.opencv.samples.tutorial3"
- android:versionCode="301"
- android:versionName="3.01">
-
- <application
- android:label="@string/app_name"
- android:icon="@drawable/icon">
-
- <activity android:name="Tutorial3Activity"
- android:label="@string/app_name"
- android:screenOrientation="landscape"
- android:configChanges="keyboardHidden|orientation">
- <intent-filter>
- <action android:name="android.intent.action.MAIN" />
- <category android:name="android.intent.category.LAUNCHER" />
- </intent-filter>
- </activity>
- </application>
-
- <supports-screens android:resizeable="true"
- android:smallScreens="true"
- android:normalScreens="true"
- android:largeScreens="true"
- android:anyDensity="true" />
-
- <uses-sdk android:minSdkVersion="8" />
-
- <uses-permission android:name="android.permission.CAMERA"/>
-
- <uses-feature android:name="android.hardware.camera" android:required="false"/>
- <uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
- <uses-feature android:name="android.hardware.camera.front" android:required="false"/>
- <uses-feature android:name="android.hardware.camera.front.autofocus" android:required="false"/>
- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
-
-</manifest>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"\r
- package="org.opencv.samples.tutorial4"\r
- android:versionCode="1"\r
- android:versionName="1.0" >\r
-\r
- <uses-sdk\r
- android:minSdkVersion="14"\r
- android:targetSdkVersion="21" />\r
-\r
- <uses-feature android:glEsVersion="0x00020000" android:required="true"/>\r
- <uses-feature android:name="android.hardware.camera"/>\r
- <uses-feature android:name="android.hardware.camera2" android:required="false"/>\r
- <uses-permission android:name="android.permission.CAMERA"/>\r
-\r
- <application\r
- android:allowBackup="true"\r
- android:icon="@drawable/icon">\r
- <activity\r
- android:name=".Tutorial4Activity"\r
- android:label="@string/app_name"\r
- android:screenOrientation="landscape"\r
- android:configChanges="keyboardHidden|orientation">\r
- <intent-filter>\r
- <action android:name="android.intent.action.MAIN" />\r
- <category android:name="android.intent.category.LAUNCHER" />\r
- </intent-filter>\r
- </activity>\r
- </application>\r
-\r
-</manifest>\r