Taifun Tools "Hide System UI" Problem

257 views
Skip to first unread message

Mika

unread,
Sep 9, 2016, 8:39:47 AM9/9/16
to MIT App Inventor Forum
Hello, I have found an error in the extension.

My App looks like these:
When Screen Initialize then call "HideSystemUI".
... so far so good, everything works in the app ...

BUT,
when I minimize the app and then load it back with the device task manager,
the app reappears the systemui again and didn't hide the systemui.

i have testet this "error" with some devices and every time it's the same.



Taifun, can you add a block like this? -> 

If you add this block to the extension, it would be possible for the user to check with a clock component if the "systemui" is hide or show.

Thx, Mika


Taifun

unread,
Sep 9, 2016, 8:49:06 AM9/9/16
to MIT App Inventor Forum
use the ActivityStateChanged event from the tools extension  https://puravidaapps.com/tools.php and call the method HideSystemUI after the state changed to resume


if state = "resume"
then HideSystemUI

Taifun

Mika

unread,
Sep 9, 2016, 9:13:22 AM9/9/16
to MIT App Inventor Forum
Thank you very much, it works really good :)
What is mean in the activity state changed with "pause" or "stop"
do you have an exsample?

Taifun

unread,
Sep 9, 2016, 9:22:29 AM9/9/16
to MIT App Inventor Forum
an example project is available, just take a look there https://puravidaapps.com/tools.php in chapter "Example App: ActivityStateChanged"
Possible values are pause, stop and resume. See also the activity lifecycle.
Taifun
Reply all
Reply to author
Forward
0 new messages