androidbroadcastreceiverbarcode-scannermotorolamotorola-emdk

How to receive MC40 barcode scanned data in Broadcast intent?


I am making an App for the MC40 Motorola Android device but I am not able to receive MC40 barcode scanned data in BroadcastReceiver?

I have created DataWedge profile and configure the Intent Output Plug-in for the profile as "Intent delivery - Broadcast intent"

Click here for guide.


Solution

  • Make sure you have the correct intent action and category setup in both the Datawedge Profile and your application's AndroidManifest.xml file.

    Example from the documentation you linked to be included in your AndroidManifest.xml.

    <intent-filter>
            <action android:name="android.intent.action.DEFAULT" />
            <category android:name="android.intent.category.MAIN" />
    </intent-filter>