- Created Barcode Scanner 3.0 beta 1, for Donut and above only.
[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.0 beta1"
24           android:versionCode="35">
25   <!-- We require Donut (Android 1.6) or later. -->
26   <uses-sdk android:minSdkVersion="4"/>
27   <!-- Donut-specific flags which allow us to run on large and high dpi screens. -->
28   <supports-screens
29     android:largeScreens="true"
30     android:normalScreens="true"
31     android:smallScreens="true"
32     android:anyDensity="true"/>
33   <application android:icon="@drawable/launcher_icon"
34                android:label="@string/app_name">
35     <activity android:name=".CaptureActivity"
36               android:screenOrientation="landscape"
37               android:configChanges="orientation|keyboardHidden"
38               android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
39       <intent-filter>
40         <action android:name="android.intent.action.MAIN"/>
41         <category android:name="android.intent.category.LAUNCHER"/>
42       </intent-filter>
43       <intent-filter>
44         <action android:name="com.google.zxing.client.android.SCAN"/>
45         <category android:name="android.intent.category.DEFAULT"/>
46       </intent-filter>
47       <!-- Allow web apps to launch Barcode Scanner by linking to http://zxing.appspot.com/scan. -->
48       <intent-filter>
49         <action android:name="android.intent.action.VIEW"/>
50         <category android:name="android.intent.category.DEFAULT"/>
51         <category android:name="android.intent.category.BROWSABLE"/>
52         <data android:scheme="http" android:host="zxing.appspot.com" android:path="/scan"/>
53       </intent-filter>
54       <!-- We also support a Google Product Search URL. -->
55       <intent-filter>
56         <action android:name="android.intent.action.VIEW"/>
57         <category android:name="android.intent.category.DEFAULT"/>
58         <category android:name="android.intent.category.BROWSABLE"/>
59         <data android:scheme="http" android:host="www.google.com" android:path="/m/products/scan"/>
60       </intent-filter>
61       <!-- And the UK version. -->
62       <intent-filter>
63         <action android:name="android.intent.action.VIEW"/>
64         <category android:name="android.intent.category.DEFAULT"/>
65         <category android:name="android.intent.category.BROWSABLE"/>
66         <data android:scheme="http" android:host="www.google.co.uk" android:path="/m/products/scan"/>
67       </intent-filter>
68     </activity>
69     <activity android:name=".PreferencesActivity"
70               android:label="@string/preferences_name">
71     </activity>
72     <activity android:name=".encode.EncodeActivity">
73       <intent-filter>
74         <action android:name="com.google.zxing.client.android.ENCODE"/>
75         <category android:name="android.intent.category.DEFAULT"/>
76       </intent-filter>
77       <!-- This allows us to handle the Share button in Contacts. -->
78       <intent-filter>
79         <action android:name="android.intent.action.SEND"/>
80         <category android:name="android.intent.category.DEFAULT"/>
81         <data android:mimeType="text/x-vcard"/>
82       </intent-filter>
83     </activity>
84     <activity android:name=".book.SearchBookContentsActivity"
85               android:label="@string/sbc_name"
86               android:screenOrientation="landscape"
87               android:configChanges="orientation|keyboardHidden">
88       <intent-filter>
89         <action android:name="com.google.zxing.client.android.SEARCH_BOOK_CONTENTS"/>
90         <category android:name="android.intent.category.DEFAULT"/>
91       </intent-filter>
92     </activity>
93     <activity android:name=".share.ShareActivity"
94               android:label="@string/share_name"
95               android:screenOrientation="user">
96       <intent-filter>
97         <action android:name="com.google.zxing.client.android.SHARE"/>
98         <category android:name="android.intent.category.DEFAULT"/>
99       </intent-filter>
100     </activity>
101     <activity android:name=".share.BookmarkPickerActivity"
102               android:label="@string/bookmark_picker_name">
103       <intent-filter>
104         <action android:name="android.intent.action.PICK"/>
105         <category android:name="android.intent.category.DEFAULT"/>
106       </intent-filter>
107     </activity>
108     <activity android:name=".HelpActivity"
109               android:screenOrientation="user">
110       <intent-filter>
111         <action android:name="android.intent.action.VIEW"/>
112         <category android:name="android.intent.category.DEFAULT"/>
113       </intent-filter>
114     </activity>
115   </application>
116   <uses-permission android:name="android.permission.CAMERA"/>
117   <uses-permission android:name="android.permission.READ_CONTACTS"/>
118   <uses-permission android:name="android.permission.WRITE_CONTACTS"/>
119   <uses-permission android:name="android.permission.INTERNET"/>
120   <uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS"/>
121   <uses-permission android:name="android.permission.VIBRATE"/>
122 </manifest>