Querying configuration settings
I have created profiles that can be activated/deactivated in our App via a button. To display the current settings in the Ui I found queries in the documentation, e.g. here https://techdocs.zebra.com/emdk-for-android/7-0/mx/uimgr/#queries . But I didn't find any code examples and I couldn't figure out how to use this in our Android project.
I tried to put the input xml from here https://techdocs.zebra.com/emdk-for-android/7-0/mx/uimgr/#getnavigation… into a profile. This looked like this:
<code>
<wap-provisioningdoc>
<characteristic type="Profile">
<parm name="ProfileName" value="readState"/>
<parm name="ModifiedDate" value="2021-08-31 16:25:16"/>
<parm name="TargetSystemVersion" value="9.1"/>
<characteristic type="UiMgr">
<parm-query name="NavigationBarUsage"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>
</code>
And then tried the following with ProfileManager:
<code>
profileManager.processProfile(
"readState", ProfileManager.PROFILE_FLAG.SET, arrayOf("")
)
</code>
As PROFILE_FLAG I have tried all variants (GET, SET, ...).
In this case i only get STATUS_CODE.SUCCESS and not STATUS_CODE.CHECK_XML and have also found nothing in the results, which could represent the described output xml.
0 Replies