I am developing an android app which calculates screen to face distance which has one camera preview in which app detect the eyes and calculates the distance and show distance above the preview and adjust the android system font according to distance calculated. Currently the app calculates distance when i run it. I want this app to continuously calculate the distance in background and change the font accordingly but now its not calculating distance in background.
I expect that app should not pause in background and calculate the distance even in background and change the system font accordingly.