Keep Screen Extension


Hi, this is a very small but necessary (at least necessary for me :))
It has only one property:
If you app window is visible to the user, keep the device’s screen turned on and bright
ScKeepScreen.aix (5.1 KB)
KeepScreenTest.aia (6.9 KB) Created by MIT App Inventor

P.S. I could not make my icon :frowning:

How to use Keep Screen On

Always nice to see more people making extensions.

FYI: AB Kitchen Sink Component has this functionality.


Thank you, did not know. It would be nice to have a database of extensions, including their functions.


There is a directory here:

But KitchenSink is a Component of AB so it’s not listed.


Icon needs to be 16x16.
What paths did you try?


Pura Vida I looked, but by the name of the extension is not always clear.
I use this method. Icons do the same as the original. But they are not compiled.
I am writing a Java Class in Android Studio. Immediately check the grammar. It turns out more convenient than a text editor.


I normally use iconName = "aiwebres/icon.png"
I create a sub folder called aiwebres and place my 16x16 icon.png in that folder.

Most use url but I prefer this method.


It does not work for me. :frowning:
It’s strange that if I copy a regular icon and give it a different name, it doesn’t work either.


@ScorpioNormal and fyi also the tools extension offers a KeepScreenOn method… also there is a method to cancel the KeepScreenOn again…


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.


iconName = “



In my version KeepScreenOn=false to cancel keep screen.
I use container.$form().getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); metod.


In this case, the icon will be loaded during app installation?


It will be visible in the builder not in the app:


I meant that the icon is downloaded from the website each time the extension is loaded into the editor, or it compiles once?


I believe it’s loaded from the url each time the builder is opened.
That is the main reason i like to use aiwebres folder method.