screen reinitializing after other screen closed

1,540 views
Skip to first unread message

Riaz Ahmed

unread,
Jun 18, 2015, 8:51:44 PM6/18/15
to mitappinv...@googlegroups.com
I have screen2 it shows a list of results from a server database.

I press one of the results and it opens screen3 to show info on my selection.

I close screen3 and expect to see the same results on screen2, BUT instead i find that after screen3 is closed the Screen is reinitiallized and it has to load the results again from the server.  I dont want this.

Is there way to stop the screen for reloading after a screen opened from that one is closed??

Taifun

unread,
Jun 18, 2015, 9:00:25 PM6/18/15
to mitappinv...@googlegroups.com
I close screen3 and expect to see the same results on screen2, BUT instead i find that after screen3 is closed the Screen is reinitiallized and it has to load the results again from the server.  I dont want this.
this is a companion app issue, just build your project and test again using the apk file
see also the notes "Current limitations of the AI Companion app" here https://puravidaapps.com/manager.php
Taifun

Riaz Ahmed

unread,
Jun 19, 2015, 6:46:44 PM6/19/15
to mitappinv...@googlegroups.com
companion app?  dont understand.

I built the app using the "show barcode" function.

scanned and installed to the phone.

if screen1 opens screen2 after screen2 closes it should then show the same screen1 as it was without reloading it right?

Taifun

unread,
Jun 19, 2015, 7:44:14 PM6/19/15
to mitappinv...@googlegroups.com
if screen1 opens screen2 after screen2 closes it should then show the same screen1 as it was without reloading it right?
if you use the recommended method of switching screens: yes

It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

Taifun

Trying to push the limits of App Inventor! Snippets and Tutorials from Pura Vida Apps by Taifun.         


Riaz Ahmed

unread,
Jun 19, 2015, 8:26:07 PM6/19/15
to mitappinv...@googlegroups.com
ok i made a really simple two screen app im using Ai 1 classic.

one screen1 there is a clock enabled with 3000ms

the timer event stops the clock and chnages the text of the button to "OK CLICK HERE" from "WAIT..."

when you click the button it opens screen2.  Now when you press back button on screen two in theory it SHOULD close the screen and show Screen1 with a button labelled "OK CLICK HERE" but it doesnt the clock is enabled and you have to wait 3 seconds again.  (i.e the Screen1 REinitialized)

is there way to stop this?

Taifun

unread,
Jun 19, 2015, 9:16:24 PM6/19/15
to mitappinv...@googlegroups.com
ok i made a really simple two screen app im using Ai 1 classic.
very bad idea, you should read this http://appinventor.mit.edu/explore/classic.html and convert immediately

and as already said, It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

Riaz Ahmed

unread,
Jun 20, 2015, 7:43:20 PM6/20/15
to mitappinv...@googlegroups.com
dont see the point of screenshots as ive explained clearly the issue, have others not had this issue?

well as you requeested i added a screenshot

note the screenclose event doesnt show a notification after screen2 closes
dascreen.jpg

Italo

unread,
Jun 20, 2015, 7:52:31 PM6/20/15
to mitappinv...@googlegroups.com
Is there any specific reason why you have to do it in AI Classic?

Taifun

unread,
Jun 20, 2015, 8:14:33 PM6/20/15
to mitappinv...@googlegroups.com
Do you test after building the app?
How do you close Screen2? A screenshot could help...
Taifun
Reply all
Reply to author
Forward
Message has been deleted
0 new messages