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.androidlegacy" > |
19 |
|
20 |
<uses-sdk |
21 |
android:minSdkVersion="7" |
22 |
android:targetSdkVersion="10" /> |
23 |
|
24 |
<uses-permission android:name="android.permission.CAMERA" /> |
25 |
<uses-permission android:name="android.permission.VIBRATE" /> |
26 |
<uses-permission android:name="android.permission.FLASHLIGHT" /> |
27 |
|
28 |
<!-- Don't require camera, as this requires a rear camera. This allows it to work on the Nexus 7 --> |
29 |
<uses-feature |
30 |
android:name="android.hardware.camera" |
31 |
android:required="false" /> |
32 |
<uses-feature |
33 |
android:name="android.hardware.camera.front" |
34 |
android:required="false" /> |
35 |
<!-- TODO replace above two with next line after Android 4.2 --> |
36 |
<!-- <uses-feature android:name="android.hardware.camera.any"/> --> |
37 |
<uses-feature |
38 |
android:name="android.hardware.camera.autofocus" |
39 |
android:required="false" /> |
40 |
<uses-feature |
41 |
android:name="android.hardware.camera.flash" |
42 |
android:required="false" /> |
43 |
<uses-feature |
44 |
android:name="android.hardware.screen.landscape" |
45 |
android:required="false" /> |
46 |
<uses-feature |
47 |
android:name="android.hardware.wifi" |
48 |
android:required="false" /> |
49 |
<!-- TODO make this not required again after android.hardware.camera.any is available --> |
50 |
|
51 |
|
52 |
<!-- Donut-specific flags which allow us to run on any dpi screens. --> |
53 |
<supports-screens |
54 |
android:anyDensity="true" |
55 |
android:largeScreens="true" |
56 |
android:normalScreens="true" |
57 |
android:smallScreens="true" |
58 |
android:xlargeScreens="true" /> |
59 |
|
60 |
<application> |
61 |
<activity |
62 |
android:name="com.google.zxing.client.androidlegacy.CaptureActivity" |
63 |
android:clearTaskOnLaunch="true" |
64 |
android:configChanges="orientation|keyboardHidden" |
65 |
android:screenOrientation="landscape" |
66 |
android:stateNotNeeded="true" |
67 |
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" |
68 |
android:windowSoftInputMode="stateAlwaysHidden" /> |
69 |
<activity |
70 |
android:name="com.google.zxing.client.androidlegacy.HelpActivity" |
71 |
android:screenOrientation="user" /> |
72 |
<activity |
73 |
android:name="com.google.zxing.client.androidlegacy.encode.EncodeActivity" |
74 |
android:screenOrientation="user" /> |
75 |
</application> |
76 |
|
77 |
</manifest> |