9
My application works as a guide for a professional illuminator, it works passively(responds via Bluetooth to user commands in your work tool) or offline where the user can operate it manually in parallel with your tool, the issue is that in both occasions the user would be a long time without interacting with the application, but reading your data constantly, it is essential that the screen does not erase or darken, I know that the user may well set this manually, but I wanted to do from within the application.
I searched on Google but only appears bullshit, talking app to save battery and etc, the problem is that keywords are the same of various questions of users laypeople.
I searched the site but found nothing here.
I looked at Developers from Google, but because I don’t know English very well, and because their explanation isn’t very intuitive, I didn’t get any constructive results. someone can help me?
it worked out Valew guy;
– Joannis
Strange, I tested both forms, in the Android 4.4.4 API 19 only option
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
kept the screen active but solved my problem, thanks.– Chinnon Santos