How to call a method from another Activity in my Activity?

0

I have a activity A and a activity B . Activity A has method metodoUm and I needed to use this method in activity B. Anyone know how I can do this? I would be very grateful.

I'm picking up to look for something on the internet and find nothing.

    
asked by anonymous 04.01.2016 / 21:47

1 answer

1

First and foremost, I want to (re-) remember that an activity has a limited life cycle.

When asked the question, declare static the methods to share. Then just call the method as follows: activityB.metodoUm .

    
05.01.2016 / 01:49