Hi
When using ProfileManager with profile that downloads a file (apk in my case), I can see in the logcat the progress of the download
01-20 17:19:12.108 3584 5076 I StatusMgrService: The message and the typeOfMsg is Downloading app.apk and progress is 30% 1
How can I get the progress programmatically?
I'm using Xamarin if it matters
My profile is the following:
<wap-provisioningdoc>
<characteristic type="Profile">
<parm name="ProfileName" value="{profileName}" />
<characteristic type="XmlMgr" version="4.2">
<parm name="emdk_name" value="executeAll"/>
<parm name="ProcessingMode" value="1"/>
</characteristic>
<characteristic version="10.1" type="FileMgr">
<parm name="FileAction" value="1" />
<characteristic type="file-details">
<parm name="TargetAccessMethod" value="2" />
<parm name="TargetPathAndFileName" value="{{destination}}" />
<parm name="IfDuplicate" value="1" />
<parm name="SourceAccessMethod" value="1" />
<parm name="SourceURI" value="{{url}}" />
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
1 Replies
Hi Matan - unfortunately FileMgr belongs to the Administrator Persona, not the Developer's. That means that you cannot use it programmatically.
Developers' features are listed here for Xamarin https://techdocs.zebra.com/emdk-for-xamarin/9-0/guide/profile-manager-guides/ and here for native Android https://techdocs.zebra.com/emdk-for-android/13-0/guide/profile-manager-guides/ .
Information sharing through files is heavily restricted after the scoped storage introduction; my advice to move to SSM https://techdocs.zebra.com/ssm/1-1/guide/about/, which can be operated both programmatically and from StageNow.
Any further questions, let us know.
br
Nicola