Does it has static-local-variables and watchdog-timers?

I look for

  1. static-local-variable, if it does not have , i will use global-variable replace them.

2.does it has watchdog-timers ?

Thank you ^_^!

Please provide a more detailed explanation of what you need…

You are familiar with programming but not App Inventor 2. You might want to learn how App Inventor is different from other programming environments. Consider reading the free Inventor’s Manual described below. It is especially useful for programmers used to C++ or Visual Basic or Pascal or Pearl etc. Why? Because AI2 is different.

Here are some resources to help you learn to use the AI2 tools. A very good way to learn App Inventor is to read the free Inventor’s Manual here in the AI2 free online eBook … the links are at the bottom of the Web page. The book ‘teaches’ users how to program with AI2 blocks.

There is a free programming course here and the aia files for the projects in the book are here:

How to do a lot of basic things with App Inventor are described here: .

Also look here and here for more tutorials.


Thank you.

1 Like

App Inventor does not have static local variables. You will need to represent these using global variables (which are screen global, not app global).

There's nothing in core App Inventor that does this exactly. You could implement something using Clock's Timer function to test for known hung states. Android will also put up a prompt if the application doesn't respond for some time, such as if it is in an infinite loop. If you explain the use case, we might be able to give you more specific recommendations.