Don't use Build.VERSION_CODES as it's not in 1.5
[zxing.git] / android / src / com / google / zxing / client / android / Intents.java
index 5e268ee..6605baf 100755 (executable)
@@ -74,6 +74,11 @@ public final class Intents {
      */
     public static final String QR_CODE_MODE = "QR_CODE_MODE";
 
+    /**
+     * Decode only Data Matrix codes.
+     */
+    public static final String DATA_MATRIX_MODE = "DATA_MATRIX_MODE";
+
     /**
      * If a barcode is found, Barcodes returns RESULT_OK to onActivityResult() of the app which
      * requested the scan via startSubActivity(). The barcodes contents can be retrieved with
@@ -122,7 +127,7 @@ public final class Intents {
      * it defaults to QR Code. Use Intent.putExtra(FORMAT, format), where
      * format is one of Contents.Format. 
      */
-    public static final String FORMAT = "com.google.zxing.client.android.ENCODE_FORMAT";
+    public static final String FORMAT = "ENCODE_FORMAT";
 
     private Encode() {
     }