From c5bed40664a4a8e39b059aafba132200342e7889 Mon Sep 17 00:00:00 2001 From: Patrick Fekete Date: Wed, 6 Oct 2021 16:56:18 +0200 Subject: [PATCH] Remove Bottlecapactivity --- .../app/src/main/AndroidManifest.xml | 9 -- .../examples/ocr/ScanBottlecapActivity.java | 136 ------------------ .../main/res/values/example_activities.xml | 2 - .../app/src/main/res/values/strings.xml | 1 - 4 files changed, 148 deletions(-) delete mode 100644 AnylineSDK-Examples/AnylineSDK-Examples-Source/app/src/main/java/io/anyline/examples/ocr/ScanBottlecapActivity.java diff --git a/AnylineSDK-Examples/AnylineSDK-Examples-Source/app/src/main/AndroidManifest.xml b/AnylineSDK-Examples/AnylineSDK-Examples-Source/app/src/main/AndroidManifest.xml index 9d629579..84574cdf 100644 --- a/AnylineSDK-Examples/AnylineSDK-Examples-Source/app/src/main/AndroidManifest.xml +++ b/AnylineSDK-Examples/AnylineSDK-Examples-Source/app/src/main/AndroidManifest.xml @@ -196,15 +196,6 @@ android:label="@string/title_license_plate" android:screenOrientation="portrait" android:theme="@style/AppTheme.DarkActionBar" /> - - - () { - @Override - public void onResult(OcrScanResult result) { - String path = setupImagePath(result.getCutoutImage()); - startScanResultIntent(getResources().getString(R.string.title_bottlecap), getSerialNumberResult(result.getResult().toString()), path); - setupScanProcessView(ScanBottlecapActivity.this, result, getScanModule()); - } - - }); - //set the debug listener - scanViewPlugin.setDebugListener(this); - - } - - @Override - protected void onResume() { - super.onResume(); - scanView.start(); - createFeedbackView(scanView); - } - - @Override - protected void onPause() { - super.onPause(); - scanView.stop(); - scanView.releaseCameraInBackground(); - - } - - protected HashMap getSerialNumberResult (String result) { - - HashMap serialNumberResult = new HashMap(); - - serialNumberResult.put(getResources().getString(R.string.bottlecap_reading_result), (result.isEmpty() || result ==null) ? getResources().getString(R.string.not_available) : result ); - - return serialNumberResult; - } - - @Override - public void onRunSkipped(RunFailure runFailure) { - } - - @Override - public void onDebug(String name, Object value) { - if (AnylineDebugListener.BRIGHTNESS_VARIABLE_NAME.equals(name) && - (AnylineDebugListener.BRIGHTNESS_VARIABLE_CLASS.equals(value.getClass()) || - AnylineDebugListener.BRIGHTNESS_VARIABLE_CLASS.isAssignableFrom(value.getClass()))) { - switch (scanView.getBrightnessFeedBack()) { - case TOO_BRIGHT: - handleFeedback(FeedbackType.TOO_BRIGHT); - break; - case TOO_DARK: - handleFeedback(FeedbackType.TOO_DARK); - break; - case OK: - handleFeedback(FeedbackType.PERFECT); - break; - } - } else if(AnylineDebugListener.DEVICE_SHAKE_WARNING_VARIABLE_NAME.equals(name)){ - handleFeedback(FeedbackType.SHAKY); - } - } - -} \ No newline at end of file diff --git a/AnylineSDK-Examples/AnylineSDK-Examples-Source/app/src/main/res/values/example_activities.xml b/AnylineSDK-Examples/AnylineSDK-Examples-Source/app/src/main/res/values/example_activities.xml index b1f24bb9..bacf79d8 100644 --- a/AnylineSDK-Examples/AnylineSDK-Examples-Source/app/src/main/res/values/example_activities.xml +++ b/AnylineSDK-Examples/AnylineSDK-Examples-Source/app/src/main/res/values/example_activities.xml @@ -21,7 +21,6 @@ Others @string/title_cowtag @string/iban - @string/bottlecap @string/red_bull_code @string/voucher_code @string/scrabble @@ -35,7 +34,6 @@ HEADER io.anyline.examples.ocr.ScanCowtagActivity io.anyline.examples.ocr.ScanIbanActivity - io.anyline.examples.ocr.ScanBottlecapActivity io.anyline.examples.ocr.ScanRedBullCodeActivity io.anyline.examples.ocr.ScanVoucherCodeActivity io.anyline.examples.ocr.ScanScrabbleActivity diff --git a/AnylineSDK-Examples/AnylineSDK-Examples-Source/app/src/main/res/values/strings.xml b/AnylineSDK-Examples/AnylineSDK-Examples-Source/app/src/main/res/values/strings.xml index 0a6eb26c..e16c381a 100644 --- a/AnylineSDK-Examples/AnylineSDK-Examples-Source/app/src/main/res/values/strings.xml +++ b/AnylineSDK-Examples/AnylineSDK-Examples-Source/app/src/main/res/values/strings.xml @@ -88,7 +88,6 @@ Scrabble Anagram - Bottlecap Red Bull Mobile Collect ISBN Record Number