EasyManua.ls Logo

Zebra TC20

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
Loading...
DataWedge
97
Error messages are logged for invalid actions, parameters and failures, for example, Profile not found or
associated with an application.
Example
Comments
The API command has no effect if the specified Profile does not exist or if the specified Profile is already
associated with an application. DataWedge automatically switches Profiles when the activity is paused, so it is
recommended that this API function is called from the onResume method of the activity.
Zebra recommends that this Profile is created to cater to all applications/activities that would otherwise default
to using Profile0. This ensures that these applications/activities continue to work with a consistent
configuration.
Reset Default Profile
Use the resetDefaultProfile API function to reset the default Profile back to Profile0.
$ adb logcat -s DWAPI
// define action and data strings
String setDefaultProfile = "com.symbol.datawedge.api.ACTION";
String extraData = "com.symbol.datawedge.api.SET_DEFAULT_PROFILE";
public void onResume() {
// create the intent
Intent i = new Intent();
// set the action to perform
i.setAction(setDefaultProfile);
// add additional info (a name)
i.putExtra(extraData, "myProfile");
// send the intent to DataWedge
this.sendBroadcast(i);
}

Table of Contents

Related product manuals