More Italian fixes
[zxing.git] / android / AndroidManifest.xml
index 63e9ca3..9df882a 100755 (executable)
@@ -20,10 +20,11 @@ version to be published. The next versionCode will be 7, regardless of whether t
 versionName is 2.31, 2.4, or 3.0. -->
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
           package="com.google.zxing.client.android"
-          android:versionName="3.0 alpha3"
-          android:versionCode="34">
-  <!-- Allows this app to run on Cupcake devices. -->
-  <uses-sdk android:minSdkVersion="3"/>
+          android:versionName="3.1"
+          android:versionCode="42">
+  <!-- We require Cupcake (Android 1.5) or later, but are really targeting Donut. -->
+  <uses-sdk android:minSdkVersion="3"
+            android:targetSdkVersion="4"/>
   <!-- Donut-specific flags which allow us to run on large and high dpi screens. -->
   <supports-screens
     android:largeScreens="true"
@@ -44,31 +45,26 @@ versionName is 2.31, 2.4, or 3.0. -->
         <action android:name="com.google.zxing.client.android.SCAN"/>
         <category android:name="android.intent.category.DEFAULT"/>
       </intent-filter>
-      <intent-filter>
-        <!-- For compatibility only - do not use in new code, this will go away! -->
-        <action android:name="com.android.barcodes.SCAN"/>
-        <category android:name="android.intent.category.DEFAULT"/>
-      </intent-filter>
       <!-- Allow web apps to launch Barcode Scanner by linking to http://zxing.appspot.com/scan. -->
       <intent-filter>
         <action android:name="android.intent.action.VIEW"/>
-        <category android:name="android.intent.category.DEFAULT" />
+        <category android:name="android.intent.category.DEFAULT"/>
         <category android:name="android.intent.category.BROWSABLE"/>
-        <data android:scheme="http" android:host="zxing.appspot.com" android:path="/scan" />
+        <data android:scheme="http" android:host="zxing.appspot.com" android:path="/scan"/>
       </intent-filter>
       <!-- We also support a Google Product Search URL. -->
       <intent-filter>
         <action android:name="android.intent.action.VIEW"/>
-        <category android:name="android.intent.category.DEFAULT" />
+        <category android:name="android.intent.category.DEFAULT"/>
         <category android:name="android.intent.category.BROWSABLE"/>
-        <data android:scheme="http" android:host="www.google.com" android:path="/m/products/scan" />
+        <data android:scheme="http" android:host="www.google.com" android:path="/m/products/scan"/>
       </intent-filter>
       <!-- And the UK version. -->
       <intent-filter>
         <action android:name="android.intent.action.VIEW"/>
-        <category android:name="android.intent.category.DEFAULT" />
+        <category android:name="android.intent.category.DEFAULT"/>
         <category android:name="android.intent.category.BROWSABLE"/>
-        <data android:scheme="http" android:host="www.google.co.uk" android:path="/m/products/scan" />
+        <data android:scheme="http" android:host="www.google.co.uk" android:path="/m/products/scan"/>
       </intent-filter>
     </activity>
     <activity android:name=".PreferencesActivity"
@@ -79,10 +75,11 @@ versionName is 2.31, 2.4, or 3.0. -->
         <action android:name="com.google.zxing.client.android.ENCODE"/>
         <category android:name="android.intent.category.DEFAULT"/>
       </intent-filter>
+      <!-- This allows us to handle the Share button in Contacts. -->
       <intent-filter>
-        <!-- For compatibility only - do not use in new code, this will go away! -->
-        <action android:name="com.android.barcodes.ENCODE"/>
+        <action android:name="android.intent.action.SEND"/>
         <category android:name="android.intent.category.DEFAULT"/>
+        <data android:mimeType="text/x-vcard"/>
       </intent-filter>
     </activity>
     <activity android:name=".book.SearchBookContentsActivity"
@@ -93,11 +90,6 @@ versionName is 2.31, 2.4, or 3.0. -->
         <action android:name="com.google.zxing.client.android.SEARCH_BOOK_CONTENTS"/>
         <category android:name="android.intent.category.DEFAULT"/>
       </intent-filter>
-      <intent-filter>
-        <!-- For compatibility only - do not use in new code, this will go away! -->
-        <action android:name="com.android.barcodes.SEARCH_BOOK_CONTENTS"/>
-        <category android:name="android.intent.category.DEFAULT"/>
-      </intent-filter>
     </activity>
     <activity android:name=".share.ShareActivity"
               android:label="@string/share_name"
@@ -114,6 +106,13 @@ versionName is 2.31, 2.4, or 3.0. -->
         <category android:name="android.intent.category.DEFAULT"/>
       </intent-filter>
     </activity>
+    <activity android:name=".share.AppPickerActivity"
+              android:label="@string/app_picker_name">
+      <intent-filter>
+        <action android:name="android.intent.action.PICK"/>
+        <category android:name="android.intent.category.DEFAULT"/>
+      </intent-filter>
+    </activity>
     <activity android:name=".HelpActivity"
               android:screenOrientation="user">
       <intent-filter>