Skip to content

DecodeIntent Exemple not worked #11

@TheKrushik

Description

@TheKrushik

I am use DecodeIntent - Kotlin Exemple

After that when I click "Start Service" or "Broadcast Intent" I get an error

2021-02-25 14:57:26.779 19956-19956/com.datalogic.examples.decodeintent E/com.datalogic.examples.decodeintent.IntentWedgeSample: Error in onCheckedChanged
    kotlin.KotlinNullPointerException
        at com.datalogic.examples.decodeintent.IntentWedgeSample$MyClickedItemListener.onCheckedChanged(IntentWedgeSample.kt:103)
        at android.widget.RadioGroup.setCheckedId(RadioGroup.java:190)
        at android.widget.RadioGroup.access$600(RadioGroup.java:57)
        at android.widget.RadioGroup$CheckedStateTracker.onCheckedChanged(RadioGroup.java:375)
        at android.widget.CompoundButton.setChecked(CompoundButton.java:174)
        at android.widget.CompoundButton.toggle(CompoundButton.java:127)
        at android.widget.RadioButton.toggle(RadioButton.java:76)
        at android.widget.CompoundButton.performClick(CompoundButton.java:132)
        at android.view.View.performClickInternal(View.java:6574)
        at android.view.View.access$3100(View.java:778)
        at android.view.View$PerformClick.run(View.java:25885)
        at android.os.Handler.handleCallback(Handler.java:873)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:193)
        at android.app.ActivityThread.main(ActivityThread.java:6669)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:518)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)


I dont get the current settings from the BarcodeManager
var configuration: ScannerProperties = null

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions