Android Question B4xDrawer + B4xPages

ilan

Expert
Licensed User
Longtime User
hi

i have a really weird bug in my app and it is not constant. i only noticed it in this specific app. i cannot upload the source or part of it but maybe someone had similar experience and can give me a hint.

so my issue is that if i am compiling the app it works fine the app is full screen but after some days i open the app again and i see it half size. then i close open again and it is full. sometimes it is half sometimes full even if i remove from background. i cannot explain this behavior.

i am using b4xdrawer and b4xpages. i am not sure it has something to do with it. on iphone i dont see this behavior only on android (samsung s25 ultra).

i am including a short video. has someone experience same issue?

 

Cableguy

Expert
Licensed User
Longtime User
I don't think it has something to do with B4XDrawer or B4XPages....
The app seems to fail to adapt to the screen size...
It may be that the page is created/shown before the screen size is known and therefore opens with the default size...
Try to recreate the behavior with a minima projet but with the same starting load... I suspect that this is where the culprit lives
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
I don't think it has something to do with B4XDrawer or B4XPages....
The app seems to fail to adapt to the screen size...
It may be that the page is created/shown before the screen size is known and therefore opens with the default size...
Try to recreate the behavior with a minima projet but with the same starting load... I suspect that this is where the culprit lives
i also think it has something to do with the page not getting the correct screen dimension but the weird thing is that it doesnot happen a lot. mostly it happen when the app is not open for some days. in debugging everything works fine. after building release app also but i leave the app for some days come back and now half size. close open close several time it fix it self. have no such thing in any other app and i normally use same templates.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
Without any sample project it is hard to see.
Do you have code such as for resizing the layout inside page resume or page appear?
I usually avoid putting code inside these subs.
 
Upvote 0
Top