EasyManuals Logo
Home>Zebra>Handhelds>PS20 Series

Zebra PS20 Series User Manual

Zebra PS20 Series
259 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 #206 background imageLoading...
Page #206 background image
DataWedge
206
<profile name>: The Profile name (a case-sensitive string) to set as the active Profile.
Return Values
None.
Error and debug messages will be logged to the Android logging system which then can be viewed and filtered
by the logcat command. You can use logcat from an ADB shell to view the log messages, for example:
Error messages will be logged for invalid actions, parameters and failures, for example, Profile not found or
associated with an application.
Example
Comments
This API function will have no effect if the specified Profile does not exist or is already associated with an
application.
DataWedge has a one-to-one relationship between Profiles and activities; a Profile can be associated only with
a single activity. When a Profile is first created, it's not associated with any application, and will not be activated
until associated. This makes it possible to create multiple unassociated Profiles.
This API function activates such Profiles.
$ adb logcat -s DWAPI
// define action and data strings
String switchToProfile = "com.symbol.datawedge.api.ACTION";
String extraData = "com.symbol.datawedge.api.SWITCH_TO_PROFILE";
public void onResume() {
super.onResume();
// create the intent
Intent i = new Intent();
// set the action to perform
i.setAction(switchToProfile);
// add additional info
i.putExtra(extraData, "myProfile");
// send the intent to DataWedge
this.sendBroadcast(i);
}

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Zebra PS20 Series Specifications

General IconGeneral
BrandZebra
ModelPS20 Series
CategoryHandhelds
LanguageEnglish

Related product manuals