Rest of cosmetic changes -- simpler, black theme with easier-to-touch buttons and...
[zxing.git] / android / AndroidManifest.xml
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
18 <!-- versionCode is a monotonically increasing integer. I'm starting it at 6 because v2.3 is the 6th
19 version to be published. The next versionCode will be 7, regardless of whether the user-visible
20 versionName is 2.31, 2.4, or 3.0. -->
21 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
22           package="com.google.zxing.client.android"
23           android:versionName="3.31"
24           android:versionCode="53">
25   <!-- We require Cupcake (Android 1.5) or later, but are really targeting Donut. -->
26   <uses-sdk android:minSdkVersion="3"
27             android:targetSdkVersion="4"/>
28   <!-- Donut-specific flags which allow us to run on any dpi screens. -->
29   <supports-screens android:largeScreens="true"
30                     android:normalScreens="true"
31                     android:smallScreens="true"
32                     android:anyDensity="true"/>
33   <!-- For Donut and above we must specify that we use the camera, but intentionally omit the
34   autofocus feature in order for the app to appear in Market for non-AF devices. While it's true
35   that 1D barcodes will not be scannable, QR Codes will work. Ideally we'd show users a message
36   to this effect on first launch. -->
37   <uses-feature android:name="android.hardware.camera"/>
38   <application android:icon="@drawable/launcher_icon"
39                android:label="@string/app_name">
40     <activity android:name=".CaptureActivity"
41               android:screenOrientation="landscape"
42               android:configChanges="orientation|keyboardHidden"
43               android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
44       <intent-filter>
45         <action android:name="android.intent.action.MAIN"/>
46         <category android:name="android.intent.category.LAUNCHER"/>
47       </intent-filter>
48       <intent-filter>
49         <action android:name="com.google.zxing.client.android.SCAN"/>
50         <category android:name="android.intent.category.DEFAULT"/>
51       </intent-filter>
52       <!-- Allow web apps to launch Barcode Scanner by linking to http://zxing.appspot.com/scan. -->
53       <intent-filter>
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"/>
58       </intent-filter>
59       <!-- We also support a Google Product Search URL. -->
60       <intent-filter>
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"/>
65       </intent-filter>
66       <!-- And the UK version. -->
67       <intent-filter>
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"/>
72       </intent-filter>
73     </activity>
74     <activity android:name=".PreferencesActivity"
75               android:label="@string/preferences_name">
76     </activity>
77     <activity android:name=".encode.EncodeActivity">
78       <intent-filter>
79         <action android:name="com.google.zxing.client.android.ENCODE"/>
80         <category android:name="android.intent.category.DEFAULT"/>
81       </intent-filter>
82       <!-- This allows us to handle the Share button in Contacts. -->
83       <intent-filter>
84         <action android:name="android.intent.action.SEND"/>
85         <category android:name="android.intent.category.DEFAULT"/>
86         <data android:mimeType="text/x-vcard"/>
87       </intent-filter>
88     </activity>
89     <activity android:name=".book.SearchBookContentsActivity"
90               android:label="@string/sbc_name"
91               android:screenOrientation="landscape"
92               android:configChanges="orientation|keyboardHidden">
93       <intent-filter>
94         <action android:name="com.google.zxing.client.android.SEARCH_BOOK_CONTENTS"/>
95         <category android:name="android.intent.category.DEFAULT"/>
96       </intent-filter>
97     </activity>
98     <activity android:name=".wifi.WifiActivity"
99               android:label="@string/wa_name"
100               android:screenOrientation="landscape"
101               android:configChanges="orientation|keyboardHidden">
102       <intent-filter>
103         <action android:name="com.google.zxing.client.android.WIFI_CONNECT"/>
104         <category android:name="android.intent.category.DEFAULT"/>
105       </intent-filter>
106     </activity>
107     <activity android:name=".share.ShareActivity"
108               android:label="@string/share_name"
109               android:screenOrientation="user">
110       <intent-filter>
111         <action android:name="com.google.zxing.client.android.SHARE"/>
112         <category android:name="android.intent.category.DEFAULT"/>
113       </intent-filter>
114     </activity>
115     <activity android:name=".share.BookmarkPickerActivity"
116               android:label="@string/bookmark_picker_name">
117       <intent-filter>
118         <action android:name="android.intent.action.PICK"/>
119         <category android:name="android.intent.category.DEFAULT"/>
120       </intent-filter>
121     </activity>
122     <activity android:name=".share.AppPickerActivity"
123               android:label="@string/app_picker_name">
124       <intent-filter>
125         <action android:name="android.intent.action.PICK"/>
126         <category android:name="android.intent.category.DEFAULT"/>
127       </intent-filter>
128     </activity>
129     <activity android:name=".HelpActivity"
130               android:screenOrientation="user">
131       <intent-filter>
132         <action android:name="android.intent.action.VIEW"/>
133         <category android:name="android.intent.category.DEFAULT"/>
134       </intent-filter>
135     </activity>
136   </application>
137   <uses-permission android:name="android.permission.CAMERA"/>
138   <uses-permission android:name="android.permission.READ_CONTACTS"/>
139   <uses-permission android:name="android.permission.WRITE_CONTACTS"/>
140   <uses-permission android:name="android.permission.INTERNET"/>
141   <uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS"/>
142   <uses-permission android:name="android.permission.VIBRATE"/>
143   <uses-permission android:name="android.permission.FLASHLIGHT"/>
144   <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
145
146   <!-- Wifi related  -->
147   <uses-permission android:name="android.permission.WRITE_SETTINGS"></uses-permission>
148   <uses-permission android:name="android.permission.CHANGE_WIFI_STATE"></uses-permission>
149   <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"></uses-permission>
150   <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission>
151
152 </manifest>