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="cz.cvut.fel.dce.barcodescanner.SCAN"/>
50 <category android:name="android.intent.category.DEFAULT"/>
52 <!-- Allow web apps to launch Barcode Scanner by linking to http://zxing.appspot.com/scan. -->
54 <action android:name="android.intent.action.VIEW"/>
55 <category android:name="android.intent.category.DEFAULT"/>
56 <category android:name="android.intent.category.BROWSABLE"/>
57 <data android:scheme="http" android:host="zxing.appspot.com" android:path="/scan"/>
59 <!-- We also support a Google Product Search URL. -->
61 <action android:name="android.intent.action.VIEW"/>
62 <category android:name="android.intent.category.DEFAULT"/>
63 <category android:name="android.intent.category.BROWSABLE"/>
64 <data android:scheme="http" android:host="www.google.com" android:path="/m/products/scan"/>
66 <!-- And the UK version. -->
68 <action android:name="android.intent.action.VIEW"/>
69 <category android:name="android.intent.category.DEFAULT"/>
70 <category android:name="android.intent.category.BROWSABLE"/>
71 <data android:scheme="http" android:host="www.google.co.uk" android:path="/m/products/scan"/>
73 <!-- Support zxing://scan/?... like iPhone app -->
75 <action android:name="android.intent.action.VIEW"/>
76 <category android:name="android.intent.category.DEFAULT"/>
77 <category android:name="android.intent.category.BROWSABLE"/>
78 <data android:scheme="zxing" android:host="scan" android:path="/"/>
81 <activity android:name=".PreferencesActivity"
82 android:label="@string/preferences_name"
83 android:stateNotNeeded="true"/>
84 <activity android:name=".encode.EncodeActivity"
85 android:stateNotNeeded="true">
87 <action android:name="cz.cvut.fel.dce.barcodescanner.ENCODE"/>
88 <category android:name="android.intent.category.DEFAULT"/>
90 <!-- This allows us to handle the Share button in Contacts. -->
92 <action android:name="android.intent.action.SEND"/>
93 <category android:name="android.intent.category.DEFAULT"/>
94 <data android:mimeType="text/x-vcard"/>
96 <!-- This allows us to handle sharing any plain text . -->
98 <action android:name="android.intent.action.SEND"/>
99 <category android:name="android.intent.category.DEFAULT"/>
100 <data android:mimeType="text/plain"/>
103 <activity android:name=".book.SearchBookContentsActivity"
104 android:label="@string/sbc_name"
105 android:stateNotNeeded="true"
106 android:screenOrientation="sensorLandscape">
108 <action android:name="cz.cvut.fel.dce.barcodescanner.SEARCH_BOOK_CONTENTS"/>
109 <category android:name="android.intent.category.DEFAULT"/>
112 <activity android:name=".share.ShareActivity"
113 android:stateNotNeeded="true"
114 android:screenOrientation="user">
116 <action android:name="cz.cvut.fel.dce.barcodescanner.SHARE"/>
117 <category android:name="android.intent.category.DEFAULT"/>
120 <activity android:name=".history.HistoryActivity"
121 android:label="@string/history_title"
122 android:stateNotNeeded="true"/>
123 <activity android:name=".share.BookmarkPickerActivity"
124 android:label="@string/bookmark_picker_name"
125 android:stateNotNeeded="true"/>
126 <activity android:name=".share.AppPickerActivity"
127 android:label="@string/app_picker_name"
128 android:stateNotNeeded="true"/>
129 <activity android:name=".HelpActivity"
130 android:label="@string/menu_help"
131 android:screenOrientation="user"
132 android:stateNotNeeded="true"/>