In my apps menu class I want a button to start an activity. This doesn’t work with the StartActivity() method becaue it’s not a subclass to Activity at all. So how should I do?
If you have read the “Beginning Android Games” you can see in the 6th chapter when he do a snake game how its shold look like when I want to start an activity.
//Daniel
Either pass your context with the constructor like below or pass it into a static method:
Static method: