Search code examples
androidapkapp-inventor

App Inventor App apk file reloads screen every second


I created an app in AI2. Its still building but i wanted to check out its speed and efficiency in the apk file format so i build the app but the home screen reloads every second and i am just able to see something and it loads and again. I checked my code there is no timers there was a while loop which I have deleted. I can't figure out what is the problem.

first screenshot second screenshot third screenshot fourth screenshot


Solution

  • There are the following possibilities

    1. "something" in the Home_screen.Initialize event might trigger the reload, to find out if this is the problem, just disable all blocks in the Home_screen.Initialize event
    2. A clock component in screen Home_screen or Screen1 might be the issue. Just check how the Clock.Timer event looks like and if you disable the clock again after calling it

    As you mentioned in the comments, #2 was the issue and you forgot to disable the clock component in Screen1