-
Successfully tested on A8.1, A13, A14 Webview 117, 121 and 122
-
Two variants are now supported and each creates its dedicated DW profile
-
Screenshots
-
The onCreate method
defines at the same time
- a new DW profile
- and the related Intent Receiver
for other purposes the received barcode data is then passed to a webview and displayed as HTML text.
-
DW profiles have the following features
-
each profile is associated to the respective app variant
bundleApp1.putString("PACKAGE_NAME", appName)
val activityName = arrayOf("*")
bundleApp1.putStringArray("ACTIVITY_LIST", activityName)
-
the IntentOutput plugin is configured to send an intent named after the applicationID (app's package name)
bParams.putString("intent_action", appName)
-
a prefix (1# or 2#) is added to the reading output to differentiate the profile that generated it
bundleAllPluginsConfig.add(dwSetPrefixPostfix(context))
-
the KeystrokeOutput plugin is switched off
bundleAllPluginsConfig.add(dwSwitchOffKeystrokeOutput(context))
-
To test this feature:
- ensure the DW profile uses INTERNAL_CAMERA as barcode input source
- keep switch 5 off
- press 4 to activate a DW profile
- press 1 or side scan buttons to trigger scanning. Note that the camera preview is visible
- then set 5
- again scan with 1 or side buttons - appreciate that the scanning completes, but no preview is available
- long press 2 - the system camera preview is brought up. it is not affected by the setHideOverlayWindows API