Solved

How Keep Android application active on screen timeout

Posted on 2013-01-04
4
758 Views
Last Modified: 2013-01-10
How Keep Android application active on screen timeout
0
Comment
Question by:roy_sanu
  • 2
  • 2
4 Comments
 
LVL 74

Expert Comment

by:käµfm³d 👽
Comment Utility
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.
0
 

Author Comment

by:roy_sanu
Comment Utility
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.
0
 
LVL 74

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
Comment Utility
Just to clarify: You are asking this question in the context of a user, not a programmer, correct?
0
 

Author Comment

by:roy_sanu
Comment Utility
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
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Once again I push the limits of my phone.  An introduction to the Android Google Now Launcher.
If your app took Google’s lash recently, here are the 5 most likely reasons.
This video is in connection to the article "The case of a missing mobile phone (https://www.experts-exchange.com/articles/28474/The-Case-of-a-Missing-Mobile-Phone.html)". It will help one to understand clearly the steps to track a lost android phone.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now