質問編集履歴

1

該当のソースコードをactivity_main\.xmlからandroidManifext\.xmlに変更

2016/10/24 18:28

投稿

tomoe
tomoe

スコア12

test CHANGED
File without changes
test CHANGED
@@ -58,35 +58,51 @@
58
58
 
59
59
  ###該当のソースコード
60
60
 
61
- ```activity_main.xml
61
+ ```AndroidManifest.xml
62
62
 
63
63
  <?xml version="1.0" encoding="utf-8"?>
64
64
 
65
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
65
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
66
-
67
- xmlns:tools="http://schemas.android.com/tools"
66
+
68
-
69
- android:id="@+id/activity_main"
70
-
71
- android:layout_width="match_parent"
72
-
73
- android:layout_height="match_parent"
74
-
75
- tools:context="com.example.tomoe.opencvcamera.MainActivity">
67
+ package="com.example.tomoe.opencvcamera">
76
-
77
-
78
-
68
+
79
- <org.opencv.android.JavaCameraView
69
+ <uses-permission android:name="android.permission.CAMERA"/>
70
+
80
-
71
+ <uses-feature android:name="android.hardware.camera2" android:required="false"/>
72
+
73
+ <uses-feature android:name="android.hardware.camera2.autofocus" android:required="false"/>
74
+
75
+ <application
76
+
81
- android:layout_width="match_parent"
77
+ android:allowBackup="true"
82
-
83
- android:layout_height="match_parent"
78
+
84
-
85
- android:id="@+id/java_camera_view"
79
+ android:icon="@mipmap/ic_launcher"
80
+
86
-
81
+ android:label="@string/app_name"
82
+
83
+ android:supportsRtl="true"
84
+
85
+ android:theme="@style/AppTheme">
86
+
87
+ <activity android:name=".MainActivity">
88
+
89
+ <intent-filter>
90
+
91
+ <action android:name="android.intent.action.MAIN" />
92
+
93
+
94
+
95
+ <category android:name="android.intent.category.LAUNCHER" />
96
+
87
- />
97
+ </intent-filter>
88
-
98
+
89
- </RelativeLayout>
99
+ </activity>
100
+
101
+ </application>
102
+
103
+
104
+
105
+ </manifest>
90
106
 
91
107
 
92
108