It is possible to detect the opening and closing of other applications using UsageStatsManager but it requires additional permission. When an app is opened, apply the settings and when it is closed, revert them. This needs an extra effort to fulfill this feature.
It is possible to detect the opening and closing of other applications using UsageStatsManager but it requires additional permission. When an app is opened, apply the settings and when it is closed, revert them. This needs an extra effort to fulfill this feature.