Intent Overview - Motorola MC40 User Manual

Hide thumbs Also See for MC40:
Table of Contents

Advertisement

4 - 20 MC40 Integrator Guide
Enabled - Enables or disables Basic Data Formatting. A check in the checkbox indicates that it is
enabled (default - enabled).
Prefix to data - Add characters to the beginning of the data when sent.
Suffix to data - Add characters to the end of the data when sent.
Send data - Set to transfer the captured data to the foreground application. Disabling this option
prevents the actual data from being transmitted. However, the prefix and suffix strings, if present,
are still transmitted even when this option is disabled (default - enabled).
Send as hex - Set to send the data in hexadecimal format. A check in the checkbox indicates that
the plug-in is enabled (default - disabled).
Send TAB key - Set to append a tab character to the end of the processed data. A check in the
checkbox indicates that the plug-in is enabled (default - disabled).
Send ENTER key - Set to append an Enter character to the end of the processed data. A check in
the checkbox indicates that the plug-in is enabled (default - disabled).

Intent Overview

The core components of an Android application (its activities, services, and broadcast receivers) are activated
by intents. An intent is a bundle of information (an Intent object) describing a desired action — including the
data to be acted upon, the category of component that should perform the action, and other pertinent
instructions. Android locates an appropriate component to respond to the intent, launches a new instance of
the component if one is needed, and passes it the Intent object.
Components advertise their capabilities, the kinds of intents they can respond to, through intent filters. Since
the system must learn which intents a component can handle before it launches the component, intent filters
are specified in the manifest as <intent-filter> elements. A component may have any number of filters, each
one describing a different capability.
For example, if the manifest contains the following:
<intent-filter . . . >
<action android:name="android.intent.action.DEFAULT" />
<category android:name="android.intent.category.MAIN" />
. . .
</intent-filter>
In the Intent output plug-in configuration, the Intent action would be:
android.intent.category.DEFAULT
and the Intent category would be:
android.intent.category.MAIN
The Intent delivery option allows the method by which the intent is delivered to be specified. The delivery
mechanisms are Send via startActivity, Send via startService or Broadcast intent.
The decode related data added to the Intent's bundle can be retrieved using the
Intent.getStringtExtra()
String LABEL_TYPE_TAG = "com.motorolasolutions.emdk.datawedge.label_type";
String contains the label type of the bar code.
.
and
Intent.getSerializableExtra()
calls, using the following String tags:

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents