
4.10.2 Capture Data and Taking a Photo in the Same Application
4.10.2 Capture Data and Taking a Photo in the Same
Application
To be able to capture bar code data and take a photo in the same application:
• Create a Datawedge profile pertaining to the picture taking Activity in your application that disables scanning and
use standard Android SDK APIs to control the Camera.
• The default Datawedge profile takes care of the scanning in the application. You might want to create another
DataWedge profile that caters to any specific scanning needs, associated to your Application's Activity pertaining
to scanning.
4.10.3 Disable DataWedge on MC40 and Mass Deploy
To disable DataWedge and deploy onto multiple MC40 devices:
Procedure Steps
1
Touch
.
2
Touch
DataWedge
.
3
Touch
.
4
Touch
Settings
.
5
Unselect the
DataWedge enabled
check box.
6
Export the DataWedge configuration. See
4.8.2 Exporting a Configuration File, page 4-37
for instructions. See
4.9 Configuration and Profile File Management, page 4-39
for instructions for using the auto import feature.
4.10.4 Soft Scan Feature
DataWedge allows a native Android application to programmatically start, stop or toggle the scan trigger state. The
application can issue an Android Broadcast Intent, to control the scanner, without requiring the scan button to be
pressed. The active DataWedge profile is required to control all the parameters during a scan operation.
The structure of the broadcast intent that resolves to the soft scan is:
action:
“com.motorolasolutions.emdk.datawedge.api.ACTION_SOFTSCANTRIGGER”
extras:
This is a String name/value pair that contains trigger state details.
name:
“com.motorolasolutions.emdk.datawedge.api.EXTRA_PARAMETER”
value:
“START_SCANNING” or “STOP_SCANNING” or “TOGGLE_SCANNING”
MN000112A01 - September 2013
4-41