EasyManuals Logo
Home>Zebra>PDA>TC20

Zebra TC20 User Manual

Zebra TC20
171 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #93 background imageLoading...
Page #93 background image
DataWedge
93
Error messages will be logged for invalid actions and parameters.
Example
Comments
This intent API allows the scanner plug-in for the current Profile to be enabled or disabled. For example,
activity A launches and uses the intent API to switch to ProfileA in which the scanner plug-in is enabled, then at
some point it uses the Data Capture API to disable the scanner plug-in. Activity B is launched. In DataWedge,
ProfileB is associated with activity B. DataWedge switches to ProfileB. When activity A comes back to the
foreground, in the
onResume method, activity A needs to use the intent API to switch back to ProfileA, then use
the intent API again to disable the scanner plug-in, to return back to the state it was in.
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 thi
s 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
$ adb logcat -s DWAPI
// define action and data strings
String scannerInputPlugin = "com.symbol.datawedge.api.ACTION_SCANNERINPUTPLUGIN";
String extraData = "com.symbol.datawedge.api.EXTRA_PARAMETER";
public void onResume() {
// create the intent
Intent i = new Intent();
// set the action to perform
i.setAction(scannerInputPlugin);
// add additional info
i.putExtra(extraData, "DISABLE_PLUGIN");
// send the intent to DataWedge
context.sendBroadcast(i);
}
Intent i = new Intent();
i.setAction("com.symbol.datawedge.api.ACTION");
i.putExtra("com.symbol.datawedge.api.ENUMERATE_SCANNERS", "");

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Zebra TC20 and is the answer not in the manual?

Zebra TC20 Specifications

General IconGeneral
BrandZebra
ModelTC20
CategoryPDA
LanguageEnglish

Related product manuals