B4J Question [B4X] [SOLVED] B4xPages and BC toast showing only on main page

JakeBullet70

Well-Known Member
Licensed User
Longtime User
Just getting started with b4x pages and have added BCToast to my project.
The problem is BCToast only shows on the B4XMainPage, not the page that is currently shown.

So in my b4xPages class_globals I have
Private toast As BCToast

In the b4xPage_Created i have
toast.Initialize(Root)

This works except the toasts message is only shown on the main page.
I have spent the last 30 minutes trying other b4xview objects in the init method. What object should go in the init?

See below (I know it is something stupid)




1608360003936.png
 
Last edited:

JakeBullet70

Well-Known Member
Licensed User
Longtime User
You can become smart if you explain what you fixed.
We may find same error in our project and your tip will help us.

Regards

Anand

It was a typo. I was calling the declared toast object in Main and not the one I had declared in my b4x page.
 
Upvote 0
Top