How to manage the Activity scheduler