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