yashsrv
(Yash Srivastava)
June 15, 2025, 6:53am
1
Hi, I don’t know how many of you have noticed this, but on using start value when switching screen, in my case from screen1 to screen2. It lags for a while and definitely it’s slower than switching screen without start value.
Btw, I am using correct method to switch screens.
convert into apk,then use .in companion it lags bcz of internet latency
yashsrv
(Yash Srivastava)
June 15, 2025, 6:57am
3
I have tested in apk, seems like the issue is same in both block (with and without start value)
Screen switching is slow in kodular, from screen1 to screen2
can u try without use close screen block
would you like to show your full block code
yashsrv
(Yash Srivastava)
June 15, 2025, 7:06am
7
I am sure my blocks are correct, I have been using kodular for so long, you may try yourself.
when we switch from screen2 to screen3 there’s no lag, but this screen1 to screen2 lags
add a spinning notifier and dismiss it just before switching on screen1, you will notice that the spinning notifier disappears but the screen1 lags for a while before switching
1 Like
yashsrv
(Yash Srivastava)
June 15, 2025, 7:18am
8
I created an empty apk and tried the same thing, it’s fast. So the problem might be the number of blocks I have in screen2 which is around 1800.
I faced it before, this issue sometimes cause app not to respond in expected time
For me
I can recommend Tinydb onclick save your values then open screen, on Screen.Initialize call TinyDB1.GetValue
Sometimes it works
Did you try opening that screen without a start value block? If not it’s the open start value
Just a suggestion
yashsrv
(Yash Srivastava)
June 15, 2025, 10:10am
11
even without start value, it lags..
Ibrahim_Jamar:
Cross check
this is the recommended method to switch screens, read this
I see many issues done by users because they switched screens not correct.
This below is now just one of many other solutions:
[blocks]
If you dont open/close screens correct your app will get possible runtime errors.
Possible errors: (example)
Unable to add window -- token android.os.BinderProxy@45d459c0 is not valid; is your activity running?
Iam sure you don’t want that.
Then please do it in the future and switch screens correct.
General Tips and Tricks for App Inventor/Makeroid
…
The issue lies in the kodular
You are switching screen in a method which is taking some time to complete and then moves to new screen.
You need to show the blocks which are there before changing the screen.
yashsrv
(Yash Srivastava)
June 15, 2025, 10:12am
13
the method has very few blocks,
let me try using a clock with 50 ms time to switch screen
yashsrv
(Yash Srivastava)
June 15, 2025, 10:26am
14
this didn’t help either, I guess it’s the limitation of kodular..
Try to remove all procedures from row created method and just try to open new screen.