DataWedge Configuration 4 - 31
Overriding Trigger Key in an Application
To override the trigger key in an application, create a profile for the application that disables the Barcode input.
In the application, use standard APIs, such as onKeyDown() to listen for the KEYCODE_BUTTON_L1 and
KEYCODE_BUTTON_R1 presses.
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.
Disable DataWedge on ET1 and Mass Deploy
To disable DataWedge and deploy onto multiple ET1 devices:
1.
Touch
Launcher
>
DataWedge
>
>
Settings
.
2.
Unselect the
DataWedge enabled
check box.
3.
Export the DataWedge configuration. See
Export Configuration File on page 4-29
See
Configuration File Management on page 4-30
for instructions for using the auto import feature.
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”
Sample
Intent sendIntent = new Intent();
sendIntent.setAction(“com.motorolasolutions.emdk.datawedge.api.ACTION_SOFTSCANTRIGGER”);
sendIntent.putExtra(“com.motorolasolutions.emdk.datawedge.api.EXTRA_PARAMETER”,
“TOGGLE_SCANNING”);
sendBroadcast(sendIntent);
Summary of Contents for ET1
Page 1: ...ET1 ENTERPRISE TABLET INTEGRATOR GUIDE ...
Page 2: ......
Page 3: ...ET1 ENTERPRISE TABLET INTEGRATOR GUIDE 72E 148511 04 Rev A March 2013 ...
Page 6: ...iv ET1 Enterprise Tablet Integrator Guide ...
Page 14: ...xii ET1 Enterprise Tablet Integrator Guide ...
Page 28: ...1 10 ET1 Enterprise Tablet Integrator Guide ...
Page 43: ...Accessories 2 15 Figure 2 17 Secure Module 8 Replace the battery ...
Page 54: ...2 26 ET1 Enterprise Tablet Integrator Guide ...
Page 88: ...4 32 ET1 Enterprise Tablet Integrator Guide ...
Page 100: ...6 6 ET1 Enterprise Tablet Integrator Guide ...
Page 120: ...7 20 ET1 Enterprise Tablet Integrator Guide ...
Page 144: ...9 14 ET1 Enterprise Tablet Integrator Guide ...
Page 166: ...A 14 ET1 Enterprise Tablet Integrator Guide ...
Page 178: ...Glossary 8 ET1 Enterprise Tablet Integrator Guide ...
Page 182: ...Index 4 ET1 Enterprise Tablet Integrator Guide ...
Page 183: ......