Create Profile

DataWedge 6.4

CREATE_PROFILE

Used to create a new DataWedge Profile on the device. If a Profile of the same name already exists on the device, the intent will fail. To create a Profile and configure its settings parameters, see SET_CONFIG.

Function Prototype


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

Parameters

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

EXTRA_DATA [String]: com.symbol.datawedge.api.CREATE_PROFILE

String <value>: Name of Profile to be created

Return Values

(None)

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

    
    private void createProfile() { 
    Intent i = new Intent(); 
    i.setAction("com.symbol.datawedge.api.ACTION"); 
    i.putExtra("com.symbol.datawedge.api.CREATE_PROFILE", profileName); 
    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