Android Question Activity not show the layout when called from another

Pedro Caldeira

Active Member
Licensed User
Longtime User
Hello All,
I have the following strange issue.
I an APP that I work in, we have several activities, classes, code modules, etc.
Sometimes, not yet identified, when I call one activity from another using Callsubdelayed, I see the code executing, in the called activity, but it does not show its layout, almost like it opened the activity, but did not execute the Activity_Create sub. But is not always. sometimes it executes all correctly and shows the activity layout, other it doesn't, but in either case I see the code executing in the log window.
Any idea as what might be cause of it ? Should I use StartActivity(called Activity), prior to the Callsub, to force the activity to show ?
 
Last edited:
You need to removeallviews then loadlayout.
If the activity already created, callsubdelayed doesn’t create the activity again.
 
Upvote 0
Hello, Show how you do it ... The best recommendation for you is to switch to B4Pages, but you probably already know that.

Yes, I know, but the APP is to extensive and in too many customers to make a new one with B4Pages quickly. I will eventually.
 
Upvote 0
You need to removeallviews then loadlayout.
If the activity already created, callsubdelayed doesn’t create the activity again.
I can't do exactly that, but you gave me an interesting idea. Going to try something of the sort. Thanks
 
Upvote 0
Back
Top