I have an application and instead of keeping the screen on, once the app runs I want the screen to go dark. How do I do this? I know that to make the screen stay on I do this:
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
But I cannot find out how to make the screen go dark.