Android Question How to access at Activity from a class

Roberto P.

Well-Known Member
Licensed User
Longtime User
Hello everyone,
I created a class to handle features an Activity. When I initialize the class I pass the object activity, but the class can not log in to the members and functions of the object Activity.
Then, in the class I tried to create a member of type object, but can not be cast for him to access the members and variali.
How can I do?

'Class module
Sub Class_Globals

Private mActivityParent As Activity
Private mAParent As Object

End Sub

Public Sub Initialize(aActivityParent As Object)

mAParent = aActivityParent
end sub


Public Sub ManageControls



For Each v As View In mAParent.GetAllViewsRecursive

ManageCtrlView(v)

Next

End Sub

'
Sub Activity_Create(FirstTime As Boolean)

mCView.Initialize(Me)

End Sub

many thanks
 
Top