]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/blob - BarCodeScanner/mobile/src/main/AndroidManifest.xml
9c6e2da731977a672b733a2a557c88cb49eb4829
[hornmich/skoda-qr-demo.git] / BarCodeScanner / mobile / src / main / AndroidManifest.xml
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">
6
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"/>
16
17     <uses-sdk android:minSdkVersion="15" android:targetSdkVersion="21"/>
18
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 -->
31
32     <supports-screens android:xlargeScreens="true"
33                       android:largeScreens="true"
34                       android:normalScreens="true"
35                       android:smallScreens="true"
36                       android:anyDensity="true"/>
37
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">
48             <intent-filter>
49                 <action android:name="android.intent.action.MAIN"/>
50                 <category android:name="android.intent.category.LAUNCHER"/>
51             </intent-filter>
52             <intent-filter>
53                 <action android:name="cz.cvut.fel.dce.barcodescanner.SCAN"/>
54                 <category android:name="android.intent.category.DEFAULT"/>
55             </intent-filter>
56             <!-- Allow web apps to launch Barcode Scanner by linking to http://zxing.appspot.com/scan. -->
57             <intent-filter>
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"/>
62             </intent-filter>
63             <!-- We also support a Google Product Search URL. -->
64             <intent-filter>
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"/>
69             </intent-filter>
70             <!-- And the UK version. -->
71             <intent-filter>
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"/>
76             </intent-filter>
77             <!-- Support zxing://scan/?... like iPhone app -->
78             <intent-filter>
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="/"/>
83             </intent-filter>
84         </activity>
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">
90             <intent-filter>
91                 <action android:name="cz.cvut.fel.dce.barcodescanner.ENCODE"/>
92                 <category android:name="android.intent.category.DEFAULT"/>
93             </intent-filter>
94             <!-- This allows us to handle the Share button in Contacts. -->
95             <intent-filter>
96                 <action android:name="android.intent.action.SEND"/>
97                 <category android:name="android.intent.category.DEFAULT"/>
98                 <data android:mimeType="text/x-vcard"/>
99             </intent-filter>
100             <!-- This allows us to handle sharing any plain text . -->
101             <intent-filter>
102                 <action android:name="android.intent.action.SEND"/>
103                 <category android:name="android.intent.category.DEFAULT"/>
104                 <data android:mimeType="text/plain"/>
105             </intent-filter>
106         </activity>
107         <activity android:name=".book.SearchBookContentsActivity"
108                   android:label="@string/sbc_name"
109                   android:stateNotNeeded="true"
110                   android:screenOrientation="sensorLandscape">
111             <intent-filter>
112                 <action android:name="cz.cvut.fel.dce.barcodescanner.SEARCH_BOOK_CONTENTS"/>
113                 <category android:name="android.intent.category.DEFAULT"/>
114             </intent-filter>
115         </activity>
116         <activity android:name=".share.ShareActivity"
117                   android:stateNotNeeded="true"
118                   android:screenOrientation="user">
119             <intent-filter>
120                 <action android:name="cz.cvut.fel.dce.barcodescanner.SHARE"/>
121                 <category android:name="android.intent.category.DEFAULT"/>
122             </intent-filter>
123         </activity>
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"/>
137     </application>
138
139 </manifest>