Better services and camera synchronization when transiting background/forground