Android Question B4XPages how can I pass the execution Main to B4XPages of Activity_Resume....?

scsjc

Well-Known Member
Licensed User
Longtime User
I've tried RaiseEvent, and it's not clear to me if it's exactly as I put it in this example.
Anyway, in the case of Activity_Resume I've tried doing Array(NULL) but it doesn't work.



B4X:
Sub Activity_KeyPress (KeyCode As Int) As Boolean
    'Return B4XPages.Delegate.Activity_KeyPress(KeyCode)

    B4XPages.GetManager.RaiseEvent(B4XPages.GetManager.GetTopPage, "Activity_KeyPress", Array(KeyCode))
    Return True
End Sub

Sub Activity_Resume
    'B4XPages.Delegate.Activity_Resume
   
    B4XPages.GetManager.RaiseEvent(B4XPages.GetManager.GetTopPage, "Activity_Resume",Array(Null))
End Sub

Sub Activity_Pause (UserClosed As Boolean)
    'B4XPages.Delegate.Activity_Pause

    B4XPages.GetManager.RaiseEvent(B4XPages.GetManager.GetTopPage, "Activity_Pause",Array(UserClosed))
End Sub
 

teddybear

Well-Known Member
Licensed User
I'm not sure what is that you pass the execution Main to B4XPages of Activity_Resume. if you just catch Activity_Resume for B4Xpage, you can use B4XPage_appear event without modifying Activity_Resume.

 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…