android prevent screen from turning off programmatically

Solutions on MaxInterview for android prevent screen from turning off programmatically by the best coders in the world

showing results for - "android prevent screen from turning off programmatically"
Andrea
15 Jun 2018
1getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
2
Klara
06 May 2019
1getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
2
similar questions