Following on from the first page of our app. We are now going to make some of the features work!
1. Go to MyActivity in the src folder.
2. The first thing you need to look at is that it extends activity.
You are saying to java you want to use some of the predefined methods in this class one of which is onCreate.
In every Java file you are most likely going to have an onCreate method, therefore they always have to extend Activity.
Only Java classes should be extended.
3. You should also implement an onClickListener. In doing so you are saying to Java that there is going to some form of button on this page.
To do so it should look like this:
implements View.OnClickListener
Dont worry about if it comes up red this is because you haven’t added in the method yet.
4. Just bellow the…
View original post 315 more words