- Bumped version to 3.4 beta 1.
authordswitkin@google.com <dswitkin@google.com@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Tue, 29 Jun 2010 21:11:27 +0000 (21:11 +0000)
committerdswitkin@google.com <dswitkin@google.com@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Tue, 29 Jun 2010 21:11:27 +0000 (21:11 +0000)
- Fixed two crashes on low DPI devices because of missing/stale views in layout-ldpi/capture.xml.
- Added support for apps on SD card on Froyo.
- Updated SDK to 8.
- Tweaked some font sizes.
- Updated the What's New page.

git-svn-id: http://zxing.googlecode.com/svn/trunk@1464 59b500cc-1b3d-0410-9834-0bbf25fbcc57

android/AndroidManifest.xml
android/assets/html/whatsnew.html
android/build.xml
android/default.properties
android/res/layout-land/encode.xml
android/res/layout-land/share.xml
android/res/layout-ldpi/capture.xml
android/res/layout/encode.xml
android/res/layout/share.xml
android/src/com/google/zxing/client/android/CaptureActivity.java

index a59471c..e1ba0db 100755 (executable)
@@ -20,8 +20,9 @@ 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.32 beta 1"
-          android:versionCode="54">
+          android:versionName="3.4 beta 1"
+          android:versionCode="55"
+          android:installLocation="auto">
   <!-- We require Cupcake (Android 1.5) or later, but are really targeting Donut. -->
   <uses-sdk android:minSdkVersion="3"
             android:targetSdkVersion="4"/>
index 52b1caf..a88c86f 100644 (file)
@@ -4,24 +4,17 @@
 <link rel="stylesheet" href="style.css" type="text/css"/>
 </head>
 <body>
-<p><b>New in version 3.31:</b></p>
+<p><b>New in version 3.4:</b></p>
 <ul>
-  <li>Fixed a bug which caused some devices not to scan from time to time.</li>
-  <li>Added Arabic translation.</li>
-  <li>Improved scanning speed.</li>
-  <li>Added RSS Expanded support.</li>
-  <li>Fixed a crash in the QR Code reader.</li>
-  <li>Improved Chinese character support in QR Codes.</li>
-</ul>
-<p><b>New in version 3.3:</b></p>
-<ul>
-  <li>Added support for RSS-14 barcodes.</li>
-  <li>Diabled the flash on the Behold II.</li>
-  <li>Added the ability to send a QR Code generated with the Share feature.</li>
-  <li>Forced the beep sound off if the phone is in silent mode.</li>
-  <li>Allowed web sites to start Barcode Scanner and choose the URL the result is sent to.</li>
-  <li>Added Portuguese and Danish translations.</li>
-  <li>New Eclair-style icon.</li>
+  <li>Added suppport for WiFi base station creditials in QR Codes.</li>
+  <li>Added Code 93 support.</li>
+  <li>Added recognition of 5 digit UPC/EAN extensions.</li>
+  <li>Added bulk scan mode to the preferences.</li>
+  <li>Allowed the app to be moved to the SD card on Froyo devices.</li>
+  <li>Fixed a problem where scanning would not work when resuming the app.</li>
+  <li>Made Calendar event parsing more lenient.</li>
+  <li>Fixed crashes in the QR Encoder with missing data.</li>
+  <li>Updated the UI appearance a bit.</li>
 </ul>
 </body>
 </html>
index 9051234..fa020fc 100644 (file)
@@ -20,7 +20,7 @@ limitations under the License.
   to find the SDK location, I've removed it and pointed us at the global ZXing build.properties. -->
   <property file="../build.properties"/>
   <!-- Parts of the Android build system insist on the name 'sdk-location', so alias it. -->
-  <property name="sdk-location" value="${android-home}"/>
+  <property name="sdk.dir" value="${android-home}"/>
 
   <!-- The build.properties file can be created by you and is never touched
   by the 'android' tool. This is the place to change some of the default property values
@@ -52,11 +52,11 @@ limitations under the License.
   <!-- Custom Android task to deal with the project target, and import the proper rules.
   This requires ant 1.6.0 or above. -->
   <path id="android.antlibs">
-    <pathelement path="${sdk-location}/tools/lib/anttasks.jar" />
-    <pathelement path="${sdk-location}/tools/lib/sdklib.jar" />
-    <pathelement path="${sdk-location}/tools/lib/androidprefs.jar" />
-    <pathelement path="${sdk-location}/tools/lib/apkbuilder.jar" />
-    <pathelement path="${sdk-location}/tools/lib/jarutils.jar" />
+    <pathelement path="${sdk.dir}/tools/lib/anttasks.jar" />
+    <pathelement path="${sdk.dir}/tools/lib/sdklib.jar" />
+    <pathelement path="${sdk.dir}/tools/lib/androidprefs.jar" />
+    <pathelement path="${sdk.dir}/tools/lib/apkbuilder.jar" />
+    <pathelement path="${sdk.dir}/tools/lib/jarutils.jar" />
   </path>
 
   <taskdef name="setup"
@@ -85,7 +85,7 @@ limitations under the License.
 
   <!-- Properties -->
 
-  <property name="android-tools" value="${sdk-location}/tools" />
+  <property name="android-tools" value="${sdk.dir}/tools" />
 
   <!-- Input directories -->
   <property name="source-folder" value="src" />
@@ -154,7 +154,7 @@ limitations under the License.
       <arg value="-S" />
       <arg path="${resource-folder}" />
       <arg value="-I" />
-      <arg path="${android-jar}" />
+      <arg path="${android.jar}" />
     </exec>
   </target>
 
@@ -239,7 +239,7 @@ limitations under the License.
               manifest="AndroidManifest.xml"
               resources="${resource-folder}"
               assets="${asset-folder}"
-              androidjar="${android-jar}"
+              androidjar="${android.jar}"
               outfolder="${out-folder}"
               basename="${ant.project.name}" />
   </target>
@@ -275,7 +275,7 @@ limitations under the License.
       <arg value="-f"/>
       <arg value="-v"/>
       <arg value="4"/>
-      <arg value="${out-folder}/temp.apk"/>      
+      <arg value="${out-folder}/temp.apk"/>
       <arg value="${out-folder}/BarcodeScanner-debug.apk"/>
     </exec>
   </target>
index b74c488..e2e8061 100644 (file)
@@ -8,4 +8,4 @@
 # project structure.
 
 # Project target.
-target=android-4
+target=android-8
index 03e4203..48ab7e6 100755 (executable)
@@ -34,7 +34,7 @@
             android:layout_gravity="center_vertical"
             android:gravity="center"
             android:textColor="@color/contents_text"
-            android:textSize="22sp"
+            android:textSize="18sp"
             android:paddingRight="8dip"
             android:paddingTop="8dip"
             android:paddingBottom="8dip"/>
index 9e3f847..7a458b0 100755 (executable)
@@ -28,7 +28,7 @@
       android:layout_height="0dip"
       android:layout_weight="1"
       android:textColor="@color/share_text"
-      android:textSize="22sp"
+      android:textSize="18sp"
       android:text="@string/msg_share_explanation"/>
 
   <LinearLayout
index 56cf1cd..50b3193 100755 (executable)
           android:gravity="right">
 
         <ImageView android:id="@+id/barcode_image_view"
-                   android:layout_width="160dip"
+                   android:layout_width="150dip"
                    android:layout_height="wrap_content"
-                   android:maxWidth="160dip"
-                   android:maxHeight="160dip"
+                   android:maxWidth="150dip"
+                   android:maxHeight="150dip"
                    android:layout_marginBottom="4dip"
                    android:adjustViewBounds="true"
                    android:scaleType="fitEnd"/>
 
         </LinearLayout>
 
+        <LinearLayout
+          android:orientation="horizontal"
+          android:layout_width="wrap_content"
+          android:layout_height="wrap_content">
+
+          <TextView android:id="@+id/meta_text_view_label"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:text="@string/msg_default_meta"
+                    android:textColor="@color/result_minor_text"
+                    android:textStyle="bold"
+                    android:textSize="14sp"
+                    android:paddingRight="4dip"/>
+
+          <TextView android:id="@+id/meta_text_view"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:textColor="@color/result_minor_text"
+                    android:textSize="14sp"/>
+
+        </LinearLayout>
+
       </LinearLayout>
 
       <ScrollView
 
   </LinearLayout>
 
-  <LinearLayout
-      android:orientation="vertical"
-      android:layout_width="fill_parent"
-      android:layout_height="fill_parent"
-      android:background="@color/transparent">
-
-    <FrameLayout
-        android:layout_width="fill_parent"
-        android:layout_height="fill_parent"
-        android:layout_weight="1"
-        android:background="@color/transparent"/>
-
-    <LinearLayout android:id="@+id/status_view"
-                  android:orientation="horizontal"
-                  android:layout_width="fill_parent"
-                  android:layout_height="wrap_content"
-                  android:layout_weight="0"
-                  android:background="@color/status_view"
-                  android:baselineAligned="false"
-                  android:padding="4dip">
-
-      <TextView android:id="@+id/status_text_view"
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                android:layout_gravity="left|center_vertical"
-                android:layout_weight="1"
-                android:text="@string/msg_default_status"
-                android:textColor="@color/status_text"
-                android.textSize="14sp"/>
-
-    </LinearLayout>
-
-  </LinearLayout>
+  <TextView android:id="@+id/status_view"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_gravity="bottom|center_horizontal"
+            android:background="@color/transparent"
+            android:text="@string/msg_default_status"
+            android:textColor="@color/status_text"
+            android:textSize="14sp"/>
 
 </FrameLayout>
index 6ee2580..0e7001d 100755 (executable)
@@ -21,7 +21,7 @@
             android:layout_height="fill_parent"
             android:fillViewport="true"
             android:background="@color/encode_view">
-  
+
   <LinearLayout android:layout_width="fill_parent"
                 android:layout_height="fill_parent"
                 android:background="@color/encode_view"
@@ -40,7 +40,7 @@
               android:layout_gravity="center_horizontal"
               android:gravity="center"
               android:textColor="@color/contents_text"
-              android:textSize="22sp"
+              android:textSize="18sp"
               android:paddingBottom="8dip"
               android:paddingLeft="8dip"
               android:paddingRight="8dip"/>
index 27ddc42..3c96dde 100755 (executable)
@@ -28,7 +28,7 @@
       android:layout_height="wrap_content"
       android:layout_weight="1"
       android:textColor="@color/share_text"
-      android:textSize="22sp"
+      android:textSize="18sp"
       android:text="@string/msg_share_explanation"/>
 
   <ImageView
index c2276ee..8a6d257 100755 (executable)
@@ -119,7 +119,7 @@ public final class CaptureActivity extends Activity implements SurfaceHolder.Cal
     PRODUCT_FORMATS.add(BarcodeFormat.EAN_13);
     PRODUCT_FORMATS.add(BarcodeFormat.EAN_8);
     PRODUCT_FORMATS.add(BarcodeFormat.RSS14);
-    ONE_D_FORMATS = new Vector<BarcodeFormat>(PRODUCT_FORMATS.size() + 3);
+    ONE_D_FORMATS = new Vector<BarcodeFormat>(PRODUCT_FORMATS.size() + 4);
     ONE_D_FORMATS.addAll(PRODUCT_FORMATS);
     ONE_D_FORMATS.add(BarcodeFormat.CODE_39);
     ONE_D_FORMATS.add(BarcodeFormat.CODE_93);