I'm building an app in which there will be little to no user input, but the screen needs to remain lit while the app is running. The app also needs to remain in the foreground, even if a face button or sleep button is accidentally pressed.
The default android video player has all of this functionality. The screen will not turn off, even during prolonged lapses in user input. The sleep button also has a different function while the app is running; rather than causing the phone to go into sleep mode, the phone enters a lock state in which screen input and the face buttons are disabled.
I need to replicate this functionality, but preferably without the lock icon or the lack of touch input.
Related
Hi,
is it possible to write an appication that checks if the backlight is turned off by having the power button pressed for more than 2 seconds (not by a certain period of input inactivity!).
If that is the case, the screen is locked automatically by the program (and, configurable, the buttons, too).
If the backlight is turned on again, the lock is to be released again.
This would be a very handy screen/button lock application in my opinion. Unfortunately, I lack the programming skilss so... is there anyone who can accomplish such a program?
My practice is to turn off my HD after use (I use 3rd party app to turn off the machine instead of pressing the power button), and put it back to the pocket. Recently, I found that my HD have do something when it is off, such as,
- make a phone call
- Go the the TF3D Photo tab and viewing a photo
- Showing the Power setting page (I set it to the LSK)
I'm 100% sure that the machine is off, so I wonder if my machine got a problem?
are you REALLY 100% sure it is OFF and not only in standby (aka screen off)? there is a old version of a 3rd party app that when you tap the poweroff icon goes standby and NOT poweroff. you should disable the 3rd party app and shut down your device using the default power button.
instead if you like having it only in standby you should keep in mind that standby does NOT by any means autolocks the screen. I'll try to explain:
you put the machine in standby and put it back in the pocket. you receive, dunno, a ring or a sms or something else. automatically the screen turns itself on, activating the touchscreen, and then all hell breaks loose
there are some solutions to this: a long press of the end key enables the default lock feature of the device. then you can turn off the screen safely (or almost safely)
also you might want to install s2u2 and set it to autolock on screen off. you turn off the screen (either with your app or the power button) and when resuming you have a neat "slide to unlock" screen (iphone-like). This is the solution i suggest more.
I am quite sure i talked too much but i hope i've been useful anyway
I frequently use my phone as an audio player/streamer. I've been using a widget to prevent the screen from sleeping entirely which was all fine and dandy, except that I now have Pandora's GUI burned into the bottom of my phone. I absolutely hate having to press the physical power button to wake my screen and then unlock it just to skip a track or whatever. Does anyone know of an app that would allow the screen to black out, but then awaken via touch? Ideally with no lockscreen, but to the lockscreen without the power button would even be heaps better than having to deal with that physical power key on the side of the phone.
I'm in the same boat. Annoying. Hate having to push the power button. Would love to hear a solution.
Samsung-SGH-I997 Infused 2.1.0
Am at least using "no lock", which trims the swipe-to-open step. Its a start and enables volume button as an choice too.
Dangers in access of your phone's sensitive material however are frightening if one's not using a psswd or other swipe action access. Point is, "no lock"-type apps could be quite regrettable if oops I lost my phone. With all the email access and other various accts most probably have auto-accessed, I myself need to start taking a good look at the what ifs. Sad, but bank quality psswd access to your phone makes good sense. Perhaps an app that allows one to temporarily disable power button on and swipe open access controls for specified time pds would be nice.
Samsung-SGH-I997 Infused 2.1.0
Definitely. I was thinking something along the lines of a widget that, upon activation, would prevent the phone from sleeping and, after a user defined period of inactivity, display a black screen that would be dismissed by a simple touch anywhere. So the phone would never actually enter a sleep state or require any sort of fancy circumvention of the power button. Then, after you're done getting your media on, you toggle the widget off. Security left in tact.
Sent from my SPH-D700 using XDA App
I have the LG G Watch R... What I have going on is i constantly turn my watch on by accident. Either i cross my arms or my leg touches the screen and turns it on.. I've even played a game without knowing i was. I've tried the hacks/ advanced settings app but those only 1/2 way turn it off. (you can still swipe).
Is there anyway to completely disable the touch screen and only be able to wake it up with the physical button??
Try double click button to put watch in theatre mode. Otherwise use settings or pull down menu.
I want the screen on i just want the touch screen to be completely disabled..
I want it to still show time but have no response to touch until after the button is clicked.
Did you check market for any third party app?
So, the 6P is a sodding big phone and I have fairly small hands.
Switching on to an unlocked state using the fingerprint reader is easy. Switching off requires the power button, which means wrestling the damn thing into a position where I can press the button.
I've looked at a few apps that switch off the screen with a shake or gesture, but these always result in a pattern request to unlock fully when turning back on with the fingerprint reader. Looking at this thread, it seems the Nova Launcher double-tap off function results in the same secondary security challenge when switching back on.
I assume this is because the third-party double-tap/shake/gesture event is only turning the screen off, not actually locking the device as the power button would.
Any ideas/solutions?
Use pocket lock and map the nova double tap gesture to the shortcut provided by pocket lock. There is some delay before it gets fully locked but it's the best option so far.
https://play.google.com/store/apps/details?id=com.paep3nguin.pocketLock