Hmm, I still have problems to understand the "Me" reference.
I have a class and in its Initialize() Sub I want to add some views to my activity. Additionally I want to call an "Event" Sub in my Activity.
I thought I just can pass the "Me" reference to the Initialize() sub. The Problem is that I cannot use the Me reference for a Activity Type (ClassCastException).
If I pass the Activity object to the Initialize() Sub I can add my views but I can't use the Activity reference in SubExists().
So currently I have to pass both, the "Me" reference and the "Activity" reference to my class. Is this correct or can I somehow get the Activity object from the Me reference?
What is the exact difference between the "Me" reference of an activity and the Activity object?
Example project attached.
Edit: Example removed. See
here for the example class