Android Build a Simple Android App with Java Basic Android Programming Adding the OnClick Method

Alan Kuo
Alan Kuo
7,697 Points

To complaint a weird situation

So I downloaded the fun fact project from previous videos and used them to code till now, and when I started to run the app it crashed saying funFactActivity has stopped running.

The reason I found out is that our class is an abstract class which can't be instantiated.

I feel it's just strange that we can't inherit the code from previous videos and we have to figure out such a tiny detail in this video alone.

Is it for the sake of training us to debugging?

2 Answers

Maciej Czuchnowski
Maciej Czuchnowski
36,426 Points

I think the videos mostly assume you're coding along from the very beginning. But I don't think the abstract thing was intentional. Most likely an accident. I will pass your complaint to someone who can fix that issue.

I am getting that same issue. The app crashes and gives an error message. Except mine says "depreciated API usage" on Android Studio. Currently still trying to figure out how to fix it. Please give an update when a solution is found. Thanks!