# How to close a screen correctly in thunkable

**URL:** <https://community.thunkable.com/t/how-to-close-a-screen-correctly-in-thunkable/1435136>\
**Category:** Questions about Thunkable X\
**Created:** [August 6, 2021, 8:31pm UTC](https://community.thunkable.com/t/how-to-close-a-screen-correctly-in-thunkable/1435136 "2021-08-06T20:31:50Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vaiper\_watafai](https://avatars.discourse-cdn.com/v4/letter/v/e36b37/32.png) [@Vaiper\_watafai](https://community.thunkable.com/u/Vaiper_watafai)\
**Post date:** [August 6, 2021, 8:31pm UTC](https://community.thunkable.com/t/how-to-close-a-screen-correctly-in-thunkable/1435136/1 "2021-08-06T20:31:50Z")

</div>

I am working on an application that requires a lot of navigation between screens  
the problem is, when I navigate between the 2 screens that I have, the app slowly gets slow.  
that slowness that the app has after opening and closing the screens, led me to investigate why that happens.  
and I found that thunkable when navigating between screens does not close them, I did several tests and found that it does not close them, and that is the reason why the application becomes slow.

The first test I did was, navigate between 2 screens, after the 10th time the application starts running a little slow.

The second test was, opened in another screen with a game in web view, when returning to the main screen the music of the game continues to be heard. To solve that, what I did was press the back button that android has and there the screen closed perfectly.

and finally I emulated the app to see the FPS by doing that action of opening and closing the screens several times, and this is what happened

 ![Csddssdsdaptura](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/4/7436ded68997f9a9b7337f8f74e3b75f1f3d8053.jpeg)  
As you can see the fps are stable, but when I open and close the screens multiple times it passes this …  
 ![sdsdsd](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/1/6103e3de12c2110ff6962d691f9cd696f53a1984.jpeg)  
My application only has 4 screens and I only navigate between 2, I don’t have many blocks but I need to navigate many times between those 2 screens

---

<div class="post-metadata">

**Author:** ![jonathonschnoor6x4b5](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jonathonschnoor6x4b5/32/112262_2.png) [@jonathonschnoor6x4b5](https://community.thunkable.com/u/jonathonschnoor6x4b5)\
**Post date:** [August 6, 2021, 8:57pm UTC](https://community.thunkable.com/t/how-to-close-a-screen-correctly-in-thunkable/1435136/2 "2021-08-06T20:57:53Z")

</div>

Could you send the link so I can have a look at the code?

---

<div class="post-metadata">

**Author:** ![Vaiper\_watafai](https://avatars.discourse-cdn.com/v4/letter/v/e36b37/32.png) [@Vaiper\_watafai](https://community.thunkable.com/u/Vaiper_watafai)\
**Post date:** [August 6, 2021, 9:18pm UTC](https://community.thunkable.com/t/how-to-close-a-screen-correctly-in-thunkable/1435136/3 "2021-08-06T21:18:49Z")

</div>

It does not have many blocks and the 2 screens that I use are those 2 nothing else

 ![Casssssptura](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/a/9a629ee70aee47b1282103fb43ee1636a6478368.jpeg)  
 ![sdsdCaptura](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/c/ccbb817ba288988ae655bf60730cc470eb58221c.jpeg) ![Captsssura](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/8/785942c8c10454313bca571a2d675b2159723ab2.jpeg)  
 ![Captura](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/3/23a3d947c00f1e50cebc8ac9b5681490cc79f552.jpeg)

---

<div class="post-metadata">

**Author:** ![jonathonschnoor6x4b5](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jonathonschnoor6x4b5/32/112262_2.png) [@jonathonschnoor6x4b5](https://community.thunkable.com/u/jonathonschnoor6x4b5)\
**Post date:** [August 6, 2021, 9:19pm UTC](https://community.thunkable.com/t/how-to-close-a-screen-correctly-in-thunkable/1435136/4 "2021-08-06T21:19:58Z")

</div>

Again, I need the link. The pictures are too small.

---

<div class="post-metadata">

**Author:** ![Vaiper\_watafai](https://avatars.discourse-cdn.com/v4/letter/v/e36b37/32.png) [@Vaiper\_watafai](https://community.thunkable.com/u/Vaiper_watafai)\
**Post date:** [August 6, 2021, 9:22pm UTC](https://community.thunkable.com/t/how-to-close-a-screen-correctly-in-thunkable/1435136/5 "2021-08-06T21:22:19Z")

</div>

the problem is not the blocks, it is thunkable. Doesn’t close the screens properly

---

<div class="post-metadata">

**Author:** ![jonathonschnoor6x4b5](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jonathonschnoor6x4b5/32/112262_2.png) [@jonathonschnoor6x4b5](https://community.thunkable.com/u/jonathonschnoor6x4b5)\
**Post date:** [August 6, 2021, 9:27pm UTC](https://community.thunkable.com/t/how-to-close-a-screen-correctly-in-thunkable/1435136/6 "2021-08-06T21:27:09Z")

</div>

It would still help to see all aspects of the problem.

I haven’t been having this problem

---

<div class="post-metadata">

**Author:** ![Vaiper\_watafai](https://avatars.discourse-cdn.com/v4/letter/v/e36b37/32.png) [@Vaiper\_watafai](https://community.thunkable.com/u/Vaiper_watafai)\
**Post date:** [August 6, 2021, 9:34pm UTC](https://community.thunkable.com/t/how-to-close-a-screen-correctly-in-thunkable/1435136/7 "2021-08-06T21:34:10Z")

</div>

look at this simple example i made  
[https://x.thunkable.com/copy/20507d91a83b4617af47974ded8c1a11](https://x.thunkable.com/copy/20507d91a83b4617af47974ded8c1a11)  
open the game screen then let the game play, once the game begins to play sound press the back button, you will see that the game sound continues

---

<div class="post-metadata">

**Author:** ![jonathonschnoor6x4b5](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jonathonschnoor6x4b5/32/112262_2.png) [@jonathonschnoor6x4b5](https://community.thunkable.com/u/jonathonschnoor6x4b5)\
**Post date:** [August 6, 2021, 9:37pm UTC](https://community.thunkable.com/t/how-to-close-a-screen-correctly-in-thunkable/1435136/8 "2021-08-06T21:37:46Z")

</div>

Seems like you’re correct.  
🤔  
Not really sure how to help you, so sorry. 😔

---

<div class="post-metadata">

**Author:** ![Vaiper\_watafai](https://avatars.discourse-cdn.com/v4/letter/v/e36b37/32.png) [@Vaiper\_watafai](https://community.thunkable.com/u/Vaiper_watafai)\
**Post date:** [August 6, 2021, 9:42pm UTC](https://community.thunkable.com/t/how-to-close-a-screen-correctly-in-thunkable/1435136/9 "2021-08-06T21:42:15Z")

</div>

you see that’s a thunkable bug 🙁 ☹ 😔

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [August 6, 2021, 10:19pm UTC](https://community.thunkable.com/t/how-to-close-a-screen-correctly-in-thunkable/1435136/10 "2021-08-06T22:19:11Z")

</div>

To avoid opening duplicate copies of the screen each time you navigate to it, put your screens in a **navigator**.

---

<div class="post-metadata">

**Author:** ![Vaiper\_watafai](https://avatars.discourse-cdn.com/v4/letter/v/e36b37/32.png) [@Vaiper\_watafai](https://community.thunkable.com/u/Vaiper_watafai)\
**Post date:** [August 6, 2021, 10:25pm UTC](https://community.thunkable.com/t/how-to-close-a-screen-correctly-in-thunkable/1435136/11 "2021-08-06T22:25:18Z")

</div>

hi muneer, i just did that. now I have to accommodate the components as they do not fit.  
but hey, thanks muneer this is the solution for this situation.  
Anyway thunkable should fix that, because the video, audio or some web with sound does not close they keep running

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [August 7, 2021, 9:43am UTC](https://community.thunkable.com/t/how-to-close-a-screen-correctly-in-thunkable/1435136/12 "2021-08-07T09:43:02Z")

</div>

> [@Vaiper\_watafai](#):
>
> Anyway thunkable should fix that, because the video, audio or some web with sound does not close they keep running

You can address this to Thunkable. As for your issue about opening screens many times slows the phone, I already answered you.

---

<div class="post-metadata">

**Author:** ![Vaiper\_watafai](https://avatars.discourse-cdn.com/v4/letter/v/e36b37/32.png) [@Vaiper\_watafai](https://community.thunkable.com/u/Vaiper_watafai)\
**Post date:** [August 7, 2021, 10:04am UTC](https://community.thunkable.com/t/how-to-close-a-screen-correctly-in-thunkable/1435136/13 "2021-08-07T10:04:44Z")

</div>

no, it doesn’t work with bottom tab navigator either. with the only component that if it works and closes the screen correctly is stack navigator

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [August 7, 2021, 10:20am UTC](https://community.thunkable.com/t/how-to-close-a-screen-correctly-in-thunkable/1435136/14 "2021-08-07T10:20:46Z")

</div>

So it worked. This is the bottom line.

---

<div class="post-metadata">

**Author:** ![Vaiper\_watafai](https://avatars.discourse-cdn.com/v4/letter/v/e36b37/32.png) [@Vaiper\_watafai](https://community.thunkable.com/u/Vaiper_watafai)\
**Post date:** [August 7, 2021, 10:43am UTC](https://community.thunkable.com/t/how-to-close-a-screen-correctly-in-thunkable/1435136/15 "2021-08-07T10:43:18Z")

</div>

Yes, that would be the solution, but in my case it doesn’t help me much. I will continue looking for alternatives, because the snack browser only has a back button to close the previous screen, and my app has a button that executes the action and then I would have to close the current screen.  
As there is no button to close the current screen, I have no way to do it because there is only the button to navigate between screens and what it does is open the screen, when this action is executed so many times the application slows down because you have many screens open

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [July 26, 2022, 9:04am UTC](https://community.thunkable.com/t/how-to-close-a-screen-correctly-in-thunkable/1435136/16 "2022-07-26T09:04:47Z")

</div>

A post was split to a new topic: [How do I reduce polling frequency?](https://community.thunkable.com/t/how-do-i-reduce-polling-frequency/1976219)

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:17pm UTC](https://community.thunkable.com/t/how-to-close-a-screen-correctly-in-thunkable/1435136/17 "2024-11-08T13:17:34Z")

</div>


