Link to home
Start Free TrialLog in
Avatar of roy_sanu
roy_sanuFlag for India

asked on

How Keep Android application active on screen timeout

How Keep Android application active on screen timeout
Avatar of kaufmed
kaufmed
Flag of United States of America image

You can only do this if the developer of the application has designed the app in this way. Android works differently than normal desktop applications do.
Avatar of roy_sanu

ASKER

my concern is when i click a display button it  goes to another screen it runs for 20 sec, instead of staying in that screen it comes back to the original screen.
ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
yes asking as a programmer

  on the click event of display i have written
10 down vote

I used:

getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);

to disable the screen timeout,  but it is not working