Page 1 of 1

Unrooted screen on, unlock the phone, flow in foreground

Posted: 10 Mar 2014 09:58
by angelatwork
Edit I have edited the post since the turn screen on seems to work but just for a moment! so you have to react directly. Would like the screen to stay turned on longer.

Hi, I have several flows that starts after a phone call or a meeting has ended, with several choices to make after it happens.
But my phone's S3 normal behavior is to black out and lock itself when a phone call has ended ( maybe depending o how long the call is).
I need to be sure that it to stays awake and not lock itself (lock= a pattern to draw) so the flows dialogs shows and can be filled in without having to turn the screen on and unlock the phone first. I can find a lot of ways to lock the phone but not to make it stay awake just after the phone call ends. ( I am using turn screen on, but it does seem to cut it most of time and it does not unlock the phone).

Any suggestions how to accomplish this?

When a meeting ends according to the calendar, I want the phone to wake up and unlock itself so I can fill in the necessary info. I can postpone the ending and have the inexact timer ask again after about 15 min if the meeting has ended and then I can also change the ending time and store it and other info in a file.

I guess if one have a solution for the phone call it will also apply for the meeting.

I also need to be sure that the dialog and other boxes stay in the foreground! Sometimes it seems to get lost behind other apps/actions.

Most grateful for any help on this topic

Re: Unrooted screen on, unlock the phone, flow in foreground

Posted: 10 Mar 2014 20:10
by Martin
Hi,

Working and bypassing the lock screen is something that is not supported well on Android.
You could try to use action Set Keyguard State: Off to disable the lock screen. You have to use an action Set Keyguard State: On at some point in time to enable the lock screen/keyguard again, for example when the input dialog has been closed. Note that the keyguard-action is known to work unreliable on many devices. Clicking on notifications might bring up the lock screen even when action Set Keyguard State: Off was executed before.
You might also have to use some actions Sleep in the flow and make some tests with different timings to turn on the screen and disable the keyguard reliably when the call ends.

The next version of Automagic adds a new option to action Turn Screen On that allows to define how long the screen should stay on which should help to prevent the phone from turning the screen off too soon.

Regards,
Martin

Re: Unrooted screen on, unlock the phone, flow in foreground

Posted: 11 Mar 2014 17:59
by angelatwork
Thank you for you answer. I had tried the set keyguard state off before I wrote with no luck , but I tried it again in a flow of its own. . For me nothing happens. The phone is still locked, but I may do something wrong. The second alternative is to show the input Dialog on the locked screen, like some others apps do. To get your attention at least. Is that possible?

Re: Unrooted screen on, unlock the phone, flow in foreground

Posted: 11 Mar 2014 19:33
by Martin
To test the keyguard action, you can create a new empty flow, add an action Set Keyguard State: Off and manually execute the flow. Turning the screen off using the power key and on again should turn on the screen without showing the lock screen. Is this working on your device? What device and Android version are you using?

Showing the input dialog on the lock screen is not possible yet, but it should be possible to add a new setting in the next version of Automagic.

Re: Unrooted screen on, unlock the phone, flow in foreground

Posted: 12 Mar 2014 11:29
by angelatwork
That is exactly what I did before (and did again, just to be sure).
I have a S3, GT i9300, updated to Android version 4.3.
In my settings I have the option ticked that says something like this "turn on the pattern lock immediately when using the power button to turn off the screen"
Edit Does this mean you cannot override this setting? I use this since I have a pretty long time-out time for the screen to lock (and also for the screen to turn black)

Re: Unrooted screen on, unlock the phone, flow in foreground

Posted: 12 Mar 2014 16:35
by Martin
There's not much I can do when the action Set Keyguard State: Off does not work on your device.
There's an action to turn off the PIN/Password lock but not the pattern lock (without root).

You could test if the plugin Secure Settings can disable the keyguard/lockscreen on your device.

Re: Unrooted screen on, unlock the phone, flow in foreground

Posted: 12 Mar 2014 18:06
by angelatwork
Ok, thank you for taking time to answer.

Edit adding I have tried the Secure Settings app before asking, but thanks anyway