D
D
Denis Kotlyarov2015-06-14 15:09:16
Java
Denis Kotlyarov, 2015-06-14 15:09:16

How to call a function from another activity?

I have two activities in which there are windows, in the first activity the main function of which will be used by other activities.
How can I call it from the second activity?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
IceJOKER, 2015-06-14
@denisandroid

It depends on the function, if the functions are separated from a specific activity, then you can take them out to some helper class, for example HelperClass and make them static.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question