-1

I'm having two activities, activity A and activity B.
I've defined a method in a class inside activity A.
Activity B has a class and its subclass.

Now I need to call the method from subclass.
As I cannot create the same method again within the subclass.

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115

1 Answers1

0

Declare your method as protected static. Then, from B, call it so: A.myMethod();

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115