1 |
<?xml version="1.0" encoding="utf-8"?> |
2 |
<!-- |
3 |
Copyright (C) 2008 ZXing authors |
4 |
|
5 |
Licensed under the Apache License, Version 2.0 (the "License"); |
6 |
you may not use this file except in compliance with the License. |
7 |
You may obtain a copy of the License at |
8 |
|
9 |
http://www.apache.org/licenses/LICENSE-2.0 |
10 |
|
11 |
Unless required by applicable law or agreed to in writing, software |
12 |
distributed under the License is distributed on an "AS IS" BASIS, |
13 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
14 |
See the License for the specific language governing permissions and |
15 |
limitations under the License. |
16 |
--> |
17 |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" |
18 |
package="com.google.zxing.client.android" > <!-- In reality, the min supported version is 15 --> |
19 |
<uses-sdk |
20 |
android:minSdkVersion="7" |
21 |
android:targetSdkVersion="19" /> |
22 |
|
23 |
<uses-permission android:name="android.permission.CAMERA" /> |
24 |
<uses-permission android:name="android.permission.VIBRATE" /> |
25 |
<uses-permission android:name="android.permission.FLASHLIGHT" /> |
26 |
|
27 |
<!-- Don't require camera, as this requires a rear camera. This allows it to work on the Nexus 7 --> |
28 |
<uses-feature |
29 |
android:name="android.hardware.camera" |
30 |
android:required="false" /> |
31 |
<uses-feature |
32 |
android:name="android.hardware.camera.front" |
33 |
android:required="false" /> |
34 |
<!-- TODO replace above two with next line after Android 4.2 --> |
35 |
<!-- <uses-feature android:name="android.hardware.camera.any"/> --> |
36 |
<uses-feature |
37 |
android:name="android.hardware.camera.autofocus" |
38 |
android:required="false" /> |
39 |
<uses-feature |
40 |
android:name="android.hardware.camera.flash" |
41 |
android:required="false" /> |
42 |
<uses-feature |
43 |
android:name="android.hardware.screen.landscape" |
44 |
android:required="false" /> |
45 |
<uses-feature |
46 |
android:name="android.hardware.wifi" |
47 |
android:required="false" /> |
48 |
<!-- TODO make this not required again after android.hardware.camera.any is available --> |
49 |
|
50 |
|
51 |
<!-- Donut-specific flags which allow us to run on any dpi screens. --> |
52 |
<supports-screens |
53 |
android:anyDensity="true" |
54 |
android:largeScreens="true" |
55 |
android:normalScreens="true" |
56 |
android:smallScreens="true" |
57 |
android:xlargeScreens="true" /> |
58 |
|
59 |
<application> |
60 |
<activity |
61 |
android:name="com.google.zxing.client.android.CaptureActivity" |
62 |
android:clearTaskOnLaunch="true" |
63 |
android:screenOrientation="sensorLandscape" |
64 |
android:stateNotNeeded="true" |
65 |
android:theme="@style/zxing_CaptureTheme" |
66 |
android:windowSoftInputMode="stateAlwaysHidden" /> |
67 |
<activity |
68 |
android:name="com.google.zxing.client.android.HelpActivity" |
69 |
android:label="@string/zxing_menu_help" |
70 |
android:screenOrientation="user" |
71 |
android:stateNotNeeded="true" /> |
72 |
<activity |
73 |
android:name="com.google.zxing.client.android.encode.EncodeActivity" |
74 |
android:screenOrientation="user" /> |
75 |
</application> |
76 |
|
77 |
</manifest> |