1 |
<?xml version="1.0" encoding="utf-8"?> |
2 |
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
3 |
package="dk.thoerup.android.barcodesample"
|
4 |
android:versionCode="1"
|
5 |
android:versionName="1.0" >
|
6 |
|
7 |
<uses-sdk
|
8 |
android:minSdkVersion="9"
|
9 |
android:targetSdkVersion="22" />
|
10 |
|
11 |
<uses-permission android:name="android.permission.CAMERA" />
|
12 |
<uses-permission android:name="android.permission.INTERNET" />
|
13 |
<uses-permission android:name="android.permission.VIBRATE" />
|
14 |
<uses-permission android:name="android.permission.FLASHLIGHT" />
|
15 |
<!-- Don't require camera, as this requires a rear camera. This allows it to work on the Nexus 7 -->
|
16 |
<uses-feature
|
17 |
android:name="android.hardware.camera"
|
18 |
android:required="false" />
|
19 |
<uses-feature
|
20 |
android:name="android.hardware.camera.front"
|
21 |
android:required="false" />
|
22 |
<!-- TODO replace above two with next line after Android 4.2 -->
|
23 |
<!-- <uses-feature android:name="android.hardware.camera.any"/> -->
|
24 |
<uses-feature
|
25 |
android:name="android.hardware.camera.autofocus"
|
26 |
android:required="false" />
|
27 |
<uses-feature
|
28 |
android:name="android.hardware.camera.flash"
|
29 |
android:required="false" />
|
30 |
<uses-feature
|
31 |
android:name="android.hardware.screen.landscape"
|
32 |
android:required="false" />
|
33 |
<uses-feature
|
34 |
android:name="android.hardware.wifi"
|
35 |
android:required="false" />
|
36 |
<!-- TODO make this not required again after android.hardware.camera.any is available -->
|
37 |
<!-- Donut-specific flags which allow us to run on any dpi screens. -->
|
38 |
<supports-screens
|
39 |
android:anyDensity="true"
|
40 |
android:largeScreens="true"
|
41 |
android:normalScreens="true"
|
42 |
android:smallScreens="true"
|
43 |
android:xlargeScreens="true" />
|
44 |
|
45 |
<application
|
46 |
android:allowBackup="true"
|
47 |
android:icon="@mipmap/ic_launcher"
|
48 |
android:label="@string/app_name"
|
49 |
android:theme="@style/AppTheme" >
|
50 |
<activity
|
51 |
android:name="dk.thoerup.android.barcodesample.MainActivity"
|
52 |
android:label="@string/app_name" >
|
53 |
<intent-filter>
|
54 |
<action android:name="android.intent.action.MAIN" />
|
55 |
|
56 |
<category android:name="android.intent.category.LAUNCHER" />
|
57 |
</intent-filter>
|
58 |
</activity>
|
59 |
<activity
|
60 |
android:name="com.google.zxing.client.android.CaptureActivity"
|
61 |
android:clearTaskOnLaunch="true"
|
62 |
android:screenOrientation="sensorLandscape"
|
63 |
android:stateNotNeeded="true"
|
64 |
android:theme="@style/zxing_CaptureTheme"
|
65 |
android:windowSoftInputMode="stateAlwaysHidden" />
|
66 |
<activity
|
67 |
android:name="com.google.zxing.client.android.HelpActivity"
|
68 |
android:label="@string/zxing_menu_help"
|
69 |
android:screenOrientation="user"
|
70 |
android:stateNotNeeded="true" />
|
71 |
<activity
|
72 |
android:name="com.google.zxing.client.android.encode.EncodeActivity"
|
73 |
android:screenOrientation="user" />
|
74 |
<activity
|
75 |
android:name="com.google.zxing.client.androidlegacy.CaptureActivity"
|
76 |
android:clearTaskOnLaunch="true"
|
77 |
android:configChanges="orientation|keyboardHidden"
|
78 |
android:screenOrientation="landscape"
|
79 |
android:stateNotNeeded="true"
|
80 |
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
81 |
android:windowSoftInputMode="stateAlwaysHidden" />
|
82 |
<activity
|
83 |
android:name="com.google.zxing.client.androidlegacy.HelpActivity"
|
84 |
android:screenOrientation="user" />
|
85 |
<activity
|
86 |
android:name="com.google.zxing.client.androidlegacy.encode.EncodeActivity"
|
87 |
android:screenOrientation="user" />
|
88 |
</application>
|
89 |
|
90 |
</manifest> |