I am able to show Device usage in a pie chart / custom view by using DeviceActivityReport extension. DeviceActivityReportScene, DeviceActivityResults every thing is working as expected.
I can get application identifier and names from DeviceActivityData but wondering how I can show/get the Application ICON for each app while showing its usage.
Apple in its presentation show the custom view that is showing Application icons. I have attached the screen show and also highlighted the App icon section.
You can use the Applications returned from your DeviceActivityReport extension, and in your app use the token from those applications to initialize labels. See more about displaying activity labels here.
Label(applicationTokenFromYourExtension).labelStyle(.iconOnly)
should get you just the application icon, if you wish.