Added support for landscape mode when encoding QR Codes, and made some small layout...
[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="2.3"
24           android:versionCode="6">
25   <application android:icon="@drawable/ic_launcher_barcodes"
26                android:label="@string/app_name">
27     <activity android:name=".BarcodesCaptureActivity"
28               android:screenOrientation="landscape"
29               android:configChanges="orientation|keyboardHidden"
30               android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
31       <intent-filter>
32         <action android:name="android.intent.action.MAIN"/>
33         <category android:name="android.intent.category.LAUNCHER"/>
34       </intent-filter>
35       <intent-filter>
36         <action android:name="com.google.zxing.client.android.SCAN"/>
37         <category android:name="android.intent.category.DEFAULT"/>
38       </intent-filter>
39       <intent-filter>
40         <!-- For compatibility only - do not use in new code, this will go away! -->
41         <action android:name="com.android.barcodes.SCAN"/>
42         <category android:name="android.intent.category.DEFAULT"/>
43       </intent-filter>
44     </activity>
45     <activity android:name="BarcodesPreferenceActivity"
46               android:label="@string/preferences_name">
47     </activity>
48     <activity android:name="BarcodesEncodeActivity">
49       <intent-filter>
50         <action android:name="com.google.zxing.client.android.ENCODE"/>
51         <category android:name="android.intent.category.DEFAULT"/>
52       </intent-filter>
53       <intent-filter>
54         <!-- For compatibility only - do not use in new code, this will go away! -->
55         <action android:name="com.android.barcodes.ENCODE"/>
56         <category android:name="android.intent.category.DEFAULT"/>
57       </intent-filter>
58     </activity>
59     <activity android:name="SearchBookContentsActivity"
60               android:label="@string/sbc_name"
61               android:screenOrientation="landscape"
62               android:configChanges="orientation|keyboardHidden">
63       <intent-filter>
64         <action android:name="com.google.zxing.client.android.SEARCH_BOOK_CONTENTS"/>
65         <category android:name="android.intent.category.DEFAULT"/>
66       </intent-filter>
67       <intent-filter>
68         <!-- For compatibility only - do not use in new code, this will go away! -->
69         <action android:name="com.android.barcodes.SEARCH_BOOK_CONTENTS"/>
70         <category android:name="android.intent.category.DEFAULT"/>
71       </intent-filter>
72     </activity>
73   </application>
74   <uses-permission android:name="android.permission.CAMERA"/>
75   <uses-permission android:name="android.permission.READ_CONTACTS"/>
76   <uses-permission android:name="android.permission.WRITE_CONTACTS"/>
77   <uses-permission android:name="android.permission.INTERNET"/>
78 </manifest>