Use var instead of explicitly specifying ActivityManager