1 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2 package="cz.cvut.fel.dce.barcodescanner"
3 android:versionName="4.7.1"
4 android:versionCode="101"
5 android:installLocation="auto">
7 <uses-permission android:name="android.permission.CAMERA"/>
8 <uses-permission android:name="android.permission.INTERNET"/>
9 <uses-permission android:name="android.permission.VIBRATE"/>
10 <uses-permission android:name="android.permission.FLASHLIGHT"/>
11 <uses-permission android:name="android.permission.READ_CONTACTS"/>
12 <uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS"/>
13 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
14 <uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
15 <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
17 <uses-sdk android:minSdkVersion="15" android:targetSdkVersion="21"/>
19 <!-- Don't require camera, as this requires a rear camera. This allows it to work on the Nexus 7 -->
20 <uses-feature android:name="android.hardware.camera" android:required="false"/>
21 <uses-feature android:name="android.hardware.camera.front" 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 android:name="android.hardware.camera.autofocus" android:required="false"/>
25 <uses-feature android:name="android.hardware.camera.flash" android:required="false"/>
26 <uses-feature android:name="android.hardware.screen.landscape"/>
27 <uses-feature android:name="android.hardware.wifi" android:required="false"/>
28 <!-- This excludes Google TV, which is unfortunately included by virtue of not requiring a camera -->
29 <uses-feature android:name="android.hardware.touchscreen"/>
30 <!-- TODO make this not required again after android.hardware.camera.any is available -->
32 <supports-screens android:xlargeScreens="true"
33 android:largeScreens="true"
34 android:normalScreens="true"
35 android:smallScreens="true"
36 android:anyDensity="true"/>
38 <application android:icon="@drawable/launcher_icon"
39 android:logo="@drawable/launcher_icon"
40 android:label="@string/app_name"
41 android:allowBackup="true">
42 <activity android:name=".CaptureActivity"
43 android:screenOrientation="sensorLandscape"
44 android:clearTaskOnLaunch="true"
45 android:stateNotNeeded="true"
46 android:theme="@style/CaptureTheme"
47 android:windowSoftInputMode="stateAlwaysHidden">
49 <action android:name="android.intent.action.MAIN"/>
50 <category android:name="android.intent.category.LAUNCHER"/>
53 <action android:name="cz.cvut.fel.dce.barcodescanner.SCAN"/>
54 <category android:name="android.intent.category.DEFAULT"/>
56 <!-- Allow web apps to launch Barcode Scanner by linking to http://zxing.appspot.com/scan. -->
58 <action android:name="android.intent.action.VIEW"/>
59 <category android:name="android.intent.category.DEFAULT"/>
60 <category android:name="android.intent.category.BROWSABLE"/>
61 <data android:scheme="http" android:host="zxing.appspot.com" android:path="/scan"/>
63 <!-- We also support a Google Product Search URL. -->
65 <action android:name="android.intent.action.VIEW"/>
66 <category android:name="android.intent.category.DEFAULT"/>
67 <category android:name="android.intent.category.BROWSABLE"/>
68 <data android:scheme="http" android:host="www.google.com" android:path="/m/products/scan"/>
70 <!-- And the UK version. -->
72 <action android:name="android.intent.action.VIEW"/>
73 <category android:name="android.intent.category.DEFAULT"/>
74 <category android:name="android.intent.category.BROWSABLE"/>
75 <data android:scheme="http" android:host="www.google.co.uk" android:path="/m/products/scan"/>
77 <!-- Support zxing://scan/?... like iPhone app -->
79 <action android:name="android.intent.action.VIEW"/>
80 <category android:name="android.intent.category.DEFAULT"/>
81 <category android:name="android.intent.category.BROWSABLE"/>
82 <data android:scheme="zxing" android:host="scan" android:path="/"/>
85 <activity android:name=".PreferencesActivity"
86 android:label="@string/preferences_name"
87 android:stateNotNeeded="true"/>
88 <activity android:name=".encode.EncodeActivity"
89 android:stateNotNeeded="true">
91 <action android:name="cz.cvut.fel.dce.barcodescanner.ENCODE"/>
92 <category android:name="android.intent.category.DEFAULT"/>
94 <!-- This allows us to handle the Share button in Contacts. -->
96 <action android:name="android.intent.action.SEND"/>
97 <category android:name="android.intent.category.DEFAULT"/>
98 <data android:mimeType="text/x-vcard"/>
100 <!-- This allows us to handle sharing any plain text . -->
102 <action android:name="android.intent.action.SEND"/>
103 <category android:name="android.intent.category.DEFAULT"/>
104 <data android:mimeType="text/plain"/>
107 <activity android:name=".book.SearchBookContentsActivity"
108 android:label="@string/sbc_name"
109 android:stateNotNeeded="true"
110 android:screenOrientation="sensorLandscape">
112 <action android:name="cz.cvut.fel.dce.barcodescanner.SEARCH_BOOK_CONTENTS"/>
113 <category android:name="android.intent.category.DEFAULT"/>
116 <activity android:name=".share.ShareActivity"
117 android:stateNotNeeded="true"
118 android:screenOrientation="user">
120 <action android:name="cz.cvut.fel.dce.barcodescanner.SHARE"/>
121 <category android:name="android.intent.category.DEFAULT"/>
124 <activity android:name=".history.HistoryActivity"
125 android:label="@string/history_title"
126 android:stateNotNeeded="true"/>
127 <activity android:name=".share.BookmarkPickerActivity"
128 android:label="@string/bookmark_picker_name"
129 android:stateNotNeeded="true"/>
130 <activity android:name=".share.AppPickerActivity"
131 android:label="@string/app_picker_name"
132 android:stateNotNeeded="true"/>
133 <activity android:name=".HelpActivity"
134 android:label="@string/menu_help"
135 android:screenOrientation="user"
136 android:stateNotNeeded="true"/>