How do you call a method in another activity from activity?

Daniel William

New member
How do you call a method in another activity from activity?
Answer
6 Answers. You can use startActivityForResult or you can pass the values from one activity to another using intents and do what is required. But it depends on what you intend to do in the method. If you need to call the same method from both Activities why not then use a third object?
 

Tìm kiếm

Back
Top