Artem Kalachyan
Feb 08, 2019
9:34 am

Is it possible to get app usage with activity names (not only packages like in ApplicationPolicy)?

I'm using Knox on Samsung devices and a whole bunch of fallbacks to implement similar functionality on other Android devices. But from some moment I've started using in my app because it allows to queryEvents and getClassName from every event which is actually activity name. This allows to control device more granularly and even block individual activities (useful for cases like Google Podcasts which has the same package as Google Search and Google Assistant). While it's available on all Android devices it's not 100% stable. When I didn't have to get activity names, only package names, I was using ApplicationPolicy.getAllAppLastUsage() on Samsung. Is there any way to get used activity info stats from Knox SDK?

Mikayla N.Samsung SEAP Moderator
Feb 13, 2019
6:40 pm

Hi Artem,

Unfortunately, the Knox SDK only supports retrieving app usage data using package names. If you have any other questions on this topic, please let me know.

Best regards,