I need to get the Activity from the single object using the parent method.
I would like to use part method recursively up to climb to activity.
I used this code thinking it worked, but I was wrong:
Any suggest?
I would like to use part method recursively up to climb to activity.
I used this code thinking it worked, but I was wrong:
B4X:
Dim Obj As View = Button1
Do While Not(Obj.Parent Is Activity)
Obj=Obj.Parent
Loop
MyAct=Obj
Any suggest?