Android Question B4Pages Background and Foreground event don't fire??

Cableguy

Expert
Licensed User
Longtime User
Hi guys....

Scratching my head again.... I can't get neither of the B4Pages_Background and B4Pages_Foreground to fire.... Need Help!!
 
Solution
Have you got the event names correct - they are not plural. This works for me.
B4X:
Sub B4XPage_Foreground
    Log("Fore")   
End Sub

Sub B4XPage_Background
    Log("Back")   
End Sub

MicroDrie

Well-Known Member
Licensed User
Stop scratching until bleeding 🤕 because now we're also going to wonder what you want to achieve 😁.
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
Stop scratching until bleeding 🤕 because now we're also going to wonder what you want to achieve 😁.
I just "detected" that those 2 évents don't seem to fire.
I worked around it but I would like to know why they didn't fire
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
Have you got the event names correct - they are not plural. This works for me.
B4X:
Sub B4XPage_Foreground
    Log("Fore")  
End Sub

Sub B4XPage_Background
    Log("Back")  
End Sub
Hi Andrew,

Many thanks... B4XPages is something I am still trying to get a grip on...
It's odd to me to have an object B4XPages but that the events related to it are B4Page... and you were right as you usualy are... I had it plural
 
Upvote 0
Top