Linear response approach to active Brownian particles in time-varying activity fields.