title: What is the rigth way to call a function in one activity from another activity?
body: <p>What is the right way to call a function in an <code>activity</code> from another <code>activity</code>.
  I used to do it by creating  a <code>static object</code> of the first <code>activity</code> and calling it from the second <code>activity</code>. But this method is method is said to cause memory leaks. 
  So what is the right method to do it? </p>