Category Archives: Stay on

“Stay on” updated with new Android security settings

The StayOn app changes the screen timeout, which in Android is a system settings.
In newer Android versions, with increased security settings, an app has to explicityly ask for the rights to change system settings.
So when you download the StayOn app in a newer Android version, you will be asked to allow the StayOn to change system settings.

Get version 1.3 here:

“stay on” FAQ

Can I change the timeout of ’30 minutes’?
Not at this moment. Since the app has no screen/form/UI, I don’t have a place to put any ‘setting’ menu item. If and when I find a solution for this, I’ll make the ’30 minutes’ configurable.

My app resets to ’15 seconds’; the app of my colleague resets to ‘2 minutes’
When you start the app to extend the screen timeout time to 30 minutes, the app remembers the current screen timeout setting.
When you start the app again and the app resets the screen timeout, it resets the screen timeout to that original, remembered, setting.
So in this case, your original screen timeout setting was ’15 seconds’ and you colleagues screen timeout setting was ‘2 minutes’

Can I remove the notification from my home screen?
Not at this moment. I’ve put the notification there to indicate that the screen timeout is set to 30 minutes so you don’t forget to turn it back to ‘normal’ again to prevent heavy battery usage from the screen.
I would like to make it a configurable user setting but didn’t find out yet how to do that (see question “Can I change the timeout of ’30 minutes’?”)

“Stay on” manual

The “Stay on” app is almost out of the testing phase, time to publish the working of the app: enter the manual.

So what is the purpose of the app?
The purpose of the app is to easily extend the screen timeout.

How does it work?
When you install the app you get one icon:

app icon

When you click the icon, it will remember your current screen timeout, and then set the screen time out to 30 minutes.
You will get a short “toast message” that this happend
toast long

And you get a notification to remind you

That was all to extend the screen timeout.
I don’t see a app screen or form?
That’s correct. Because there is no interaction with this app there is no visual screen or form. You only see the “toast messsage” and the notification.
(If you think another way would be better, please leave a comment!)

Typical usage for the app is that you only want to extend it for a limited time of use, so you want to reset the screen timeout to the old value too.
There are 2 ways to do that:
1: click the app icon again or
2: click the notification

In both cases the screen timeout will be set to the old value (which we remembered earlier) and you get a short “toast message” what the new screen timeout is.

toast short

Hope you enjoy the app, and if you have any questions please post a comment.

Figuring out how to implement the ‘stay on’ app

I was figuring out how to implement the ‘stay on’ app.

Where can I put a button to click?

First idea was to put it in a always present notification.
This seemed like a bad idea though; it is of course a convenient and always present place to store ‘content’ like a button, but it is not meant for it.

A simple ‘flashlight’ app set me in the right direction.
The flashlight app is a simple app with which you can set your camera light on and off. You click the icon and the light goes on, and you click the icon again, and the light goes off.
The same thing I want, so that sounds like a good idea.
What the flashlight app and the stay-on app have in common is that it is more a ‘control-button’ than a real app with a screen / user interface.
So I think this is the way I will implement it.

One thing which can be a slight problem is that when you forget to press the button (start the app) again, the screen timeout will stay long.
So I wondered if I could add a (visual) indication that the screen timeout was set to a long period.
I decided to implement it as a persistent notification

In my idea of typical usage of the app, you use it to temporarily set the screen timeout to a long period, not to set it to a long time for always.
You set the screen timeout to a long period, work on your phone, and then reset the screen timeout to the original period.
In this way, it would make sense that you would be reminded (by a notification) that you changed the setting. By implementing it as a notification it is clear, present, and non-intrusive.

Advantage of this implementation is that I can use the notification as the button too: when you click on the notification, the same action is performed as clicking the ‘button’ (app icon): the screen timeout is set to the original period.

Choosing an app icon for ‘Stay on’

I found a nice collection of icons from which I am going to choose the icon for the new ‘Stay on’ app.

I find it difficult to choose one, because what icon says “Stay on”.

Because I didn’t know the answer to that question, I decided to pick a nice looking, neutral looking one.

So, here are the candidates:

stay-on-icon (7) stay-on-icon (6) stay-on-icon (5) stay-on-icon (4) stay-on-icon (3) stay-on-icon (2) stay-on-icon (1)stay-on-icon (8)stayonicon

If you want you can pick your favorite and put it in the comment.

New Android app: ‘keep your telephone screen on’

Do you recognize this:

  • You are typing a to-do item on your phone and when you check the television for a second, your phone screen is off.
  • Or you are online banking on your phone, and when your child asks a question, your phone screen goes off.
  • Or you are typing an email on your phone, and when you ask for the exact name of the recipient, your phone screen goes off.
  • Or you are…. well you know what I mean.

Wouldn’t it be nice that you can easily extend the time that the screen will stay on?

I thought it would be nice that I could click a button and the screen would stay on long, and when I click the button again, it would restore the old screen timeout.

So click once: screen timeout long, click again: original screen timeout restored.

I would like that, so that will be my next app, and it will probably be named: ‘stay on’