Sidemenu problem

I try to put close screen after open another screen (screen1)
but the app looping on screen2

See tip 1

Don’t EVER open Screen1 to go back, unless you close it while switching.

Ok thanks for the information.

Because on the others platform I usually switch back and forth between the screen using the method Open Screen

@Peter thanks for the tips, but I know about the screen tips, and my app needs to have multiple screen.

Think of the screens as Tetris blocks. You should clean the lower layers before stacking up, or else you reach the top and boom. Game Over.

aka Java OutOfMemory Error

actually here is how to properly close an screen.

if closed you need to use open another screen block again to open screen 1 back

this is my last AIA with the exact procedureSLIDEMENU.aia (3.0 KB)

My Screen1

My Screen2

1 Like

we are using this one

If this don’t work for you contact @Kodular staffs for further assistant

Ok thank you guys for your helps,

Hope they have solution for this problem, and I really hope they do.

And another information might be useful to debug.

the problem wont arise when I am not using the sidemenu

so When there is no side menu involve, then I can go back and forth without any problem.

1 Like

hope the problem is caused due to side menu

1 Like

I have testet current your aia.

  1. Open app
  2. Open menu click on button
  3. Now is screen 2 open.
  4. Now I click on Screen 2 on the button 2
  5. Now I’m back on screen 1

And I can do above in a loop without any crash on my phone.

Btw, have you tried it with companion or as real apk?

Can you try to press the button on screen 1
After point no 5?
On my companion the button won’t respond (doesn’t go to screen 2) after point no 5.

I’m using companion, haven’t tested with real apk

Try with an apk. Changing screens in a companion never works.

Try it as apk. In companion it will not work.
Just as notice:
I personal do never us the companion. I always export a project as apk and then I test it on my device.

I don’t think the problem with companion
The function work flawlessly without the side menu.
I can go back and forth between 2 screen without any glitch

But I will try later with the real apk later when I got my laptop


The problem is the companion because the side menu works only correct as apk
(And you can trust my I know that. :smiley: I’m the developer of the side menu).
As I said I have nothing changed on your aia and exportet it as apk.
Your logic works! The apk works.

I look current into a possiple solution that it works too on companion.
But I can’t say anything if it will work.


Good news I have found a work arround and had created a new block.
This will be available in next release.

If you do it like below then you can use the “Side Menu” in companion on “Screen Initialize” event and the companion will then not crash.

Above must only be done in companion. You dont need to add the “Remove Side Menu” for a apk above the “Side Menu” block.
This is just a workarround for the companion !!!

Too this block will be usefull if a user wants to remove a side menu at runtime.


Good news Mika

I know we can count on you guys…

Thanks alot

1 Like