DataWedge
104
NOTE: Use of this API changes only the runtime status of the scanner; it does not make persistent changes to the Profile.
The above assumes that ProfileA is not associated with any applications/activities, therefore when focus switches back to
activity A, DataWedge will not automatically switch to ProfileA therefore activity A must switch back to ProfileA in its
onResume method. Because DataWedge will automatically switch Profile when an activity is paused, it is recommended
that this API function be called from the onResume method of the activity.
Enumerate Scanners
Use the enumerateScanners API command to get a list of scanners available on the device.
Function Prototype
Parameters
ACTION [String]: "com.symbol.datawedge.api.ENUMERATE_SCANNERS"
Return Values
The enumerated list of scanners will be returned via a broadcast Intent. The broadcast Intent action is
"com.symbol.datawedge.api.ACTION_ENUMERATEDSCANNERLIST" and the list of scanners is returned as
a string array (see the example below).
Error and debug messages will be logged to the Android logging system which then can be viewed and filtered
by the logcat command. You can use logcat from an ADB shell to view the log messages, for example:
Error messages will be logged for invalid actions and parameters.
Intent i = new Intent();
i.setAction("com.symbol.datawedge.api.ACTION");
i.putExtra("com.symbol.datawedge.api.ENUMERATE_SCANNERS", "");
$ adb logcat -s DWAPI