Automatically start recording when the app comes foreground.