diff options
| author | Ralf Kistner <ralf@embarkmobile.com> | 2015-04-05 22:40:09 +0300 |
|---|---|---|
| committer | Ralf Kistner <ralf@embarkmobile.com> | 2015-04-05 22:40:09 +0300 |
| commit | 623cc0e79c49cc7f27dc588a19e446c94bfd1cd9 (patch) | |
| tree | 514007b5aa28c1f0fa523bbe3c080d7fef8ffc5f /sample/src/main/java/example/zxing | |
| parent | 0d57fdd5fb3ed7c22fff9077477cd354fa35b0bd (diff) | |
| download | zxing-android-embedded-623cc0e79c49cc7f27dc588a19e446c94bfd1cd9.tar.xz | |
Update readme.
Diffstat (limited to 'sample/src/main/java/example/zxing')
| -rw-r--r-- | sample/src/main/java/example/zxing/CustomCaptureActivity.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sample/src/main/java/example/zxing/CustomCaptureActivity.java b/sample/src/main/java/example/zxing/CustomCaptureActivity.java index dd2abedd..f61a7b05 100644 --- a/sample/src/main/java/example/zxing/CustomCaptureActivity.java +++ b/sample/src/main/java/example/zxing/CustomCaptureActivity.java @@ -6,6 +6,7 @@ import android.os.Bundle; import android.util.Log; import android.view.KeyEvent; import android.view.View; +import android.widget.TextView; import com.google.zxing.Result; import com.google.zxing.ResultPoint; @@ -26,10 +27,10 @@ public class CustomCaptureActivity extends Activity { private BarcodeCallback callback = new BarcodeCallback() { @Override public void barcodeResult(Result result) { -// TextView text = (TextView)findViewById(R.id.zxing_barcode_status); -// if(result.getText() != null) { -// text.setText(result.getText()); -// } + TextView text = (TextView)findViewById(R.id.zxing_barcode_status); + if(result.getText() != null) { + text.setText(result.getText()); + } } @Override |
