Get DataWedge Status

DataWedge 6.3

GET_DATAWEDGE_STATUS

Gets the name of the Profile currently in use by DataWedge.

Function Prototype

Intent i = new Intent();
i.setAction("com.symbol.datawedge.api.ACTION");
i.putExtra("com.symbol.datawedge.api.GET_DATAWEDGE_STATUS", "");

Parameters

ACTION [String]: "com.symbol.datawedge.api.ACTION"

EXTRA_DATA [String]: "com.symbol.datawedge.api.GET_DATAWEDGE_STATUS"

EXTRA VALUE: Empty string

Return Values

Returns a Bundle with the status (enabled/disabled) of DataWedge.

EXTRA NAME: "com.symbol.datawedge.api.GET_DATAWEDGE_STATUS_RESULT"

EXTRA TYPE: Bundle

Error and debug messages are logged to the Android logging system, which can be viewed and filtered by the logcat command. Use logcat from an ADB shell to view the log messages:


$ adb logcat -s DWAPI

Error messages are logged for invalid actions and parameters.

Example

//SENDING THE INTENT
Intent i = new Intent();
i.setAction("com.symbol.datawedge.api.ACTION");
i.putExtra("com.symbol.datawedge.api.GET_DATAWEDGE_STATUS", "");
context.this.sendBroadcast(i);

//RECEIVING THE RESULT
Intent i = new Intent();
i.setAction("com.symbol.datawedge.api.ACTION");
intent.getBundleExtra("com.symbol.datawedge.api.GET_DATAWEDGE_STATUS_RESULT");
context.this.sendBroadcast(i);

SEE ALSO:

Zebra Support Central | Integrator Guides, Product Manuals, Software Downloads and Support

LaunchPad | Zebra Developer Community

Intent | Android Developers

Intents and Intent Filters | Android Developers

Android Intents | Tutorial