[Solved] How make class with overriding methods in Android?


Of course, because run is a part of an anonymous inner class. In this method:

public void start(long delay, long period)
{
    ...
    updateTask = new TimerTask() {
        // !! method run() should be override
        public void run() {
            // TODO
        }
    };
    ...
}  

You cannot override run because it isn’t a part of your class. It is a part of an inner class you create there. You actually need to declare run in your class if you want to override it. And by declare in the class, I don’t mean in a nested class. I mean inside your class

1

solved How make class with overriding methods in Android?