logo
  • TechDocs Home
  • DataWedge 15.0

  • About
  • Get Started
  • Profiles
  • Guides
  • Feature Matrix
  • APIs
  • Samples
  • FAQ
    • CN - 普通话 CN - 普通话
    • JP - 日本語 JP - 日本語
  • Get Profiles List
  • GET_PROFILES_LIST
    • Function Prototype
    • Parameters
    • Return Values
  • Example Code

Get Profiles List

DataWedge 15.0

GET_PROFILES_LIST

Gets a list of DataWedge Profiles on the device.

Function Prototype

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

Parameters

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

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

EXTRA VALUE: Empty string

Return Values

Returns a String array of Datawedge Profiles

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

EXTRA TYPE [String]: [ ]

Example Code

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

//RECEIVING THE RESULT
private BroadcastReceiver myBroadcastReceiver = new BroadcastReceiver(){

    @Override
    public void onReceive(Context context, Intent intent){

        Bundle extras = getIntent().getExtras();
        if (intent.hasExtra("com.symbol.datawedge.api.RESULT_GET_PROFILES_LIST")){
            String[] profilesList = intent.getStringArrayExtra("com.symbol.datawedge.api.RESULT_GET_PROFILES_LIST")

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. ©2024 Zebra Technologies Corp. and/or its affiliates.
Legal | Terms of Use | Privacy Policy