Implemented activitySetting to allow/disallow applications