Is there a way to restart an AI2 app (namely, calling the Screen1.Initialize method) by manipulating the Emulator interface?
Namely, can pressing the below (combination of) keys initiate an app restart?
Namely, can pressing the below (combination of) keys initiate an app restart?
Currently, the only way I figured to do that is (from http://ai2.appinventor.
Is there a way to restart an app under development without a complete restart of the emulator?
Environment:
AI2, Emulator
AI2, Emulator
my solution of the problems with the emulator is the virtual machine.
You can see it in: http://youtu.be/OR_rqZ2Z4ZE
Usually I use a workaround, for example change something to the title of the screen (put an extra blank at the end, and take it away the next time you want to start). Or change something else in your Design, which is not really a change.
Another thing you can do is to put everyting in your Screen.Initialize in a separate procedure, which you call form the initialize, or use DoIt (open the context menu on the call block and choose DoIt). You will find that sometimes things do not restart as you would wish, because you changed some desing settings. It is a good idea to add these to your start procedure.
In a game-like thing, a good way is to have a start button, which just calls the start procedure, see above.
댓글 없음:
댓글 쓰기