logo
  • TechDocs
  • DataWedge 11.0

  • About
  • Guides
  • Profiles
  • Feature Matrix
  • Decoders
  • Settings
  • APIs
  • Samples
  • FAQ
    • CN - 普通话 CN - 普通话
    • JP - 日本語 JP - 日本語
  • Get DataWedge Status
  • GET_DATAWEDGE_STATUS
    • Function Prototype
    • Parameters
    • Return Values
  • Example Code

Get DataWedge Status

DataWedge 11.0

GET_DATAWEDGE_STATUS

Introduced in DataWedge 6.4.

Returns the status of DataWedge as "enabled" or "disabled" as a string extra.

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 the status of DataWedge as "enabled" or "disabled" as a string extra.

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

EXTRA TYPE: Bundle

Example Code

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

//RECEIVING THE RESULT
private BroadcastReceiver broadcastReceiverDWStatus = new BroadcastReceiver() {
    @Override
    public void onReceive(Context context, Intent intent) {

        if (intent.hasExtra("com.symbol.datawedge.api.RESULT_GET_DATAWEDGE_STATUS")) {
            String dwStatus = intent.getStringExtra("com.symbol.datawedge.api.RESULT_GET_DATAWEDGE_STATUS");
        }
    }
};

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

ZEBRA and the stylized Zebra head are trademarks of Zebra Technologies Corp., registered in many jurisdictions worldwide. All other trademarks are the property of their respective owners. ©2021 Zebra Technologies Corp. and/or its affiliates.
Legal | Terms of Use | Privacy Policy