Android Question Event from CustomView Class to Activity Modul?

MarkusR

Well-Known Member
Licensed User
Longtime User
is there a Simple way to create a event in a Customview to catch this Event in
the Activity Modul?

something like

B4X:
CustomView:
Sub ButtonFinish_Click

   RaiseEvent Ready(1)
 
End Sub

---
Activity:
Sub Ready(a as int)
End Sub
 
Last edited:

MarkusR

Well-Known Member
Licensed User
Longtime User
ahhh, that is special but it works :) thanks

CustomView Class
B4X:
Sub ButtonFinish_Click
    
    CallSubDelayed2(ActivityWork,"WorkStepFinished",WorkStep1)
    
End Sub

Activity Modul
B4X:
Public Sub WorkStepFinished(WorkStep1 As WorkStep)
    
    Log("WorkStepFinished")
    
End Sub
 
Upvote 0

MarkusR

Well-Known Member
Licensed User
Longtime User
you mean in CallSubDelayed2 true
ok i unterstand, thanks for this hint
 
Upvote 0
Top