回答編集履歴
1
公式サンプル
test
CHANGED
@@ -7,3 +7,75 @@
|
|
7
7
|
|
8
8
|
|
9
9
|
この記述必要じゃありませんでした?
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
## 追記
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
[公式サンプル(カメラ)](https://developer.android.com/samples/Camera2Raw/AndroidManifest.html)
|
20
|
+
|
21
|
+
```xml
|
22
|
+
|
23
|
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
24
|
+
|
25
|
+
package="com.example.android.camera2raw"
|
26
|
+
|
27
|
+
android:versionCode="1"
|
28
|
+
|
29
|
+
android:versionName="1.0">
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
<!-- Min/target SDK versions (<uses-sdk>) managed by build.gradle -->
|
34
|
+
|
35
|
+
<uses-permission android:name="android.permission.CAMERA" />
|
36
|
+
|
37
|
+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
38
|
+
|
39
|
+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
<!-- A camera with RAW capability is required to use this application -->
|
44
|
+
|
45
|
+
<uses-feature android:name="android.hardware.camera" />
|
46
|
+
|
47
|
+
<uses-feature android:name="android.hardware.camera.raw" />
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
<application android:allowBackup="true"
|
52
|
+
|
53
|
+
android:label="@string/app_name"
|
54
|
+
|
55
|
+
android:icon="@drawable/ic_launcher"
|
56
|
+
|
57
|
+
android:theme="@style/MaterialTheme">
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
<activity android:name="com.example.android.camera2raw.CameraActivity"
|
62
|
+
|
63
|
+
android:label="@string/app_name">
|
64
|
+
|
65
|
+
<intent-filter>
|
66
|
+
|
67
|
+
<action android:name="android.intent.action.MAIN" />
|
68
|
+
|
69
|
+
<category android:name="android.intent.category.LAUNCHER" />
|
70
|
+
|
71
|
+
</intent-filter>
|
72
|
+
|
73
|
+
</activity>
|
74
|
+
|
75
|
+
</application>
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
</manifest>
|
80
|
+
|
81
|
+
```
|