--- /dev/null
+MIDlet-1: @APP_NAME@, /res/zxing-icon.png, com.google.zxing.client.j2me.ZXingMIDlet\r
+MIDlet-Description: ZXing Barcode Reader\r
+MIDlet-Icon: /res/zxing-icon.png\r
+MIDlet-Info-URL: code.google.com/p/zxing\r
+MIDlet-Jar-Size: @JAR_SIZE@\r
+MIDlet-Jar-URL: @APP_NAME@.jar\r
+MIDlet-Name: @APP_NAME@\r
+MIDlet-Permissions: javax.microedition.media.control.VideoControl.getSnapshot\r
+MIDlet-Vendor: ZXing Project\r
+MIDlet-Version: @VERSION@\r
+MicroEdition-Configuration: CLDC-1.1\r
+MicroEdition-Profile: MIDP-2.0\r
+++ /dev/null
-MIDlet-1: @APP_NAME@, /res/zxing-icon.png, com.google.zxing.client.j2me.ZXingMIDlet\r
-MIDlet-Description: Bar Code Reader\r
-MIDlet-Icon: /res/zxing-icon.png\r
-MIDlet-Info-URL: code.google.com/p/zxing\r
-MIDlet-Jar-Size: @JAR_SIZE@\r
-MIDlet-Jar-URL: @APP_NAME@.jar\r
-MIDlet-Name: @APP_NAME@\r
-MIDlet-Permissions: javax.microedition.media.control.VideoControl.getSnapshot\r
-MIDlet-Vendor: ZXing Project\r
-MIDlet-Version: @VERSION@\r
-MicroEdition-Configuration: CLDC-1.1\r
-MicroEdition-Profile: MIDP-2.0\r
<!-- get .jar size to include it in the .jad file -->
<length file="${jar-name}.jar" property="jar-size"/>
- <copy file="ZXingReader.jad.template" tofile="${jar-name}.jad" overwrite="true">
+ <copy file="BarcodeReader.jad.template" tofile="${jar-name}.jad" overwrite="true">
<filterset>
<filter token="JAR_SIZE" value="${jar-size}"/>
<filter token="APP_NAME" value="${jar-name}"/>
<target name="build">
<description>Builds the main reader .jar file</description>
- <property name="jar-name" value="ZXingReader"/>
+ <property name="jar-name" value="BarcodeReader"/>
<antcall target="clean"/>
<antcall target="compile"/>
<antcall target="package"/>
<target name="build-basic">
<description>Builds the basic reader .jar file</description>
- <property name="jar-name" value="ZXingReaderBasic"/>
+ <property name="jar-name" value="BarcodeReaderBasic"/>
<antcall target="clean"/>
<antcall target="compile-basic"/>
<antcall target="package"/>
Manifest-Version: 1.0
MIDlet-1: @APP_NAME@, , com.google.zxing.client.j2me.ZXingMIDlet
-MIDlet-Description: Bar Code Reader
+MIDlet-Description: ZXing Barcode Reader
MIDlet-Icon: /res/zxing-icon.png
MIDlet-Info-URL: code.google.com/p/zxing
MIDlet-Name: @APP_NAME@
zXingMIDlet.handleDecodedText(result.getText());
} catch (ReaderException re) {
// Show a friendlier message on a mere failure to read the barcode
- zXingMIDlet.showError("No barcode was detected in this image. Try again.");
+ zXingMIDlet.showError("Sorry, no barcode was found.");
} catch (Throwable t) {
zXingMIDlet.showError(t);
} finally {
ParsedReaderResultType type = result.getType();
if (type.equals(ParsedReaderResultType.URI)) {
String uri = ((URIParsedResult) result).getURI();
- showOpenURL("Open web page?", uri, uri);
+ showOpenURL("Open Web Page?", uri, uri);
} else if (type.equals(ParsedReaderResultType.BOOKMARK)) {
String uri = ((BookmarkDoCoMoResult) result).getURI();
- showOpenURL("Open web page?", uri, uri);
+ showOpenURL("Open Web Page?", uri, uri);
} else if (type.equals(ParsedReaderResultType.EMAIL)) {
String email = ((EmailDoCoMoResult) result).getTo();
- showOpenURL("Compose e-mail?", email, "mailto:" + email);
+ showOpenURL("Compose E-mail?", email, "mailto:" + email);
} else if (type.equals(ParsedReaderResultType.EMAIL_ADDRESS)) {
String email = ((EmailAddressResult) result).getEmailAddress();
- showOpenURL("Compose e-mail?", email, "mailto:" + email);
+ showOpenURL("Compose E-mail?", email, "mailto:" + email);
} else if (type.equals(ParsedReaderResultType.UPC)) {
String upc = ((UPCParsedResult) result).getUPC();
String uri = "http://www.upcdatabase.com/item.asp?upc=" + upc;
- showOpenURL("Look up UPC?", upc, uri);
+ showOpenURL("Look Up Barcode Online?", upc, uri);
} else {
- showAlert("Barcode detected", result.getDisplayResult());
+ showAlert("Barcode Detected", result.getDisplayResult());
}
}