Tuesday, 7 July 2015

mc40 barcode scanner


























Then in your AndroidManifest.xml:

<receiver android:name=".receivers.MC40BarcodeReaderBroadcastReceiver">
    <intent-filter>
        <action android:name="ms.staff.app.mc40.barcode.reader" />
        <!-- <category android:name="android.intent.category.DEFAULT" /> -->    </intent-filter>
</receiver>



In this Receiver:

public class MC40BarcodeReaderBroadcastReceiver extends BarcodeReaderBroadcastReceiver {

    @Override    public void onReceive(Context context, Intent intent) {
        String barcode = intent.getStringExtra("com.motorolasolutions.emdk.datawedge.data_string");
        broadcastNewBarcode(context, barcode);
    }

}











No comments:

Post a comment