The FLAG_KEEP_SCREEN_ON flag in Android's WindowManager.LayoutParams is specific to a window, not the entire display.
window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)), it ensures that the screen stays on while that specific window is visible.So, if you want to keep the screen on for a particular activity or dialog, you set this flag on its window. For other windows (e.g., another activity), you would need to set the flag separately.
Would you like an example of how to use this flag in code?