Menu
Who Do Is
  • Home
  • What
  • How
  • Is
  • Can
  • Are
  • Does
  • Do
  • Why
  • Who
  • Where
  • Which
  • Which
  • Should
  • Will
  • When
  • What’s
  • Did
Who Do Is

[ANSWERED] kotlin – How to handle failure cases and scanner timeout callback in zebra using DataWedge in android?

Posted on November 14, 2022

Solution 1 :

There is not an API to let you know the scan has timed out. The best way to achieve this would probably be to use the Register_For_Notification API and detect when the scanner goes from SCANNING to WAITING, if that transition is not accompanied by a successful scan you can assume the scan timed out or the user released the trigger. I have a sample app showing how to register for the scanner state.

Problem :

Used DataWedge feature to scan the barcode in zebra device and send it back to device using intent.

I used below code to receive scanned data using intent.

override fun onNewIntent(intent: Intent) {
        super.onNewIntent(intent)
        //  DataWedge intents received here
        if (intent.hasExtra(DWInterface.DATAWEDGE_SCAN_EXTRA_DATA_STRING)) {
            Log.v(tag, "onNewIntent()")
            //  Handle scan intent received from DataWedge
            val barcodeData = intent.getStringExtra(DWInterface.DATAWEDGE_SCAN_EXTRA_DATA_STRING)
            Log.v(tag, "scanData: $barcodeData")
        }
    }

I need to know how to handle scanner failure cases & scanner timeout callback?

Comments

Comment posted by Gopinathan B

After scanner started scanning then I need to hide progress bar when scanner gets timeout without reading data. Is there any other way to achieve this?

Comment posted by Darryn Campbell

I can’t think of any, if I were implementing that I would use the Register_For_Notification API

READ  [ANSWERED] android - why a dwc3 usb controller didnot report xfercomplete event? Or the gadget driver missed that event?
Powered by Inline Related Posts

Recent Posts

  • How can I play with my cat without toys?
  • What is a bag pipe band called?
  • Are Honda Civics actually fast?
  • Are Yankee candles toxic?
  • How do I pair my Michael Kors smartwatch with my Android?

Recent Comments

No comments to show.

Archives

  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuántas
  • ¿Cuánto
  • ¿Que
  • ¿Quién
  • 90” and 108” so you may have to round up to the nearest size.
  • and delete any Spotify folders from it. Once this is done
  • Android
  • Are
  • At
  • Bei
  • blink
  • C'est
  • Can
  • carbs
  • Comment
  • Did
  • Do
  • Does
  • During
  • For
  • Has
  • How
  • In
  • Is
  • Ist
  • Kann
  • Können
  • nouveau
  • On
  • or 108 inches.2020-08-03
  • Où
  • owning
  • Pourquoi
  • Puis-je
  • Quand
  • Quante
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • spiritual
  • tap the downward-facing arrow on the top left. A downward-facing arrow will appear underneath each song in the album; they'll turn green as the download completes.2020-07-28
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welcher
  • Welches
  • Welke
  • Wer
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Whose
  • Why
  • Wie
  • Will
  • Wo
  • Woher
  • you will receive two curtains each with the same measurements of width 66"" (168cm) x drop 54""(137cm).
  • you'll see a green downward-facing arrow next to each song.2021-02-26
©2023 Who Do Is | Powered by SuperbThemes & WordPress