I am creating an application that updates the user interface using the runOnUiThread (Runnable) method. It is very important that this UI thread continues to work while the user launches this application, even when onPause (). However, I realized that when the screen is locked, Android stops the user interface flow; and I don’t blame them, perhaps to save battery power. But I want to know if there is a way to override this and say that the activity or system continues to work in the user interface thread.
Brian source
share