Problem when I clicked the button and redirect back again, page not staying.

29 views
Skip to first unread message

Xiaomy Redmii

unread,
Nov 11, 2018, 9:44:26 AM11/11/18
to MIT App Inventor Forum
I build a blocks that when a button is click will go to another screen and it works, but it just stay for 5 seconds or less and go back to original page. I'm thinking that this always happening even though I debug the blockings.

TimAI2

unread,
Nov 11, 2018, 10:15:08 AM11/11/18
to MIT App Inventor Forum
Please provide an image of your relevant blocks (right click on blocks editor and download image of blocks)

Use different screens wisely

If you decided to use different screens, then you should switch them correctly, else you will run out of memory after a while...      
The recommended method of switching screens in App Inventor
(Thanks Taifun)

Also see demo: multiscreen.aia

If you haven't done it already....

Xiaomy Redmii

unread,
Nov 11, 2018, 10:30:13 AM11/11/18
to MIT App Inventor Forum
is that all?? is there any bug when the screen are not in proper order?

TimAI2

unread,
Nov 11, 2018, 11:28:55 AM11/11/18
to MIT App Inventor Forum
is that all?? is there any bug when the screen are not in proper order?

Can't tell until you show us what you are doing ?

Xiaomy Redmii

unread,
Nov 16, 2018, 3:32:01 AM11/16/18
to MIT App Inventor Forum
cs2.aia

Xiaomy Redmii

unread,
Nov 16, 2018, 3:33:22 AM11/16/18
to MIT App Inventor Forum
pls help need to solve this now

I was just speculating that might be the problem is the order of SCREEN but I don't think this was the issue

TimAI2

unread,
Nov 16, 2018, 6:19:09 AM11/16/18
to MIT App Inventor Forum
You have several basic design problems

  1. You are not managing switching screens correctly, this will cause memory issues and app crashes (see below)
  2. Your "splash" screen is not the best method, as you always have the clock running, and this combined with 1 above, is causing the screen "bouncing". Do you really need to send the user back to it, once the app is started ?
  3. You could do all of this on one screen to overcome these issues using arrangements as "virtual screens"
Reply all
Reply to author
Forward
0 new messages