title: Passing function from one activity to another via Broadcasts
body: <p>I want to pass a function from one activity to another using Broadcasts. Like we can pass Strings and int by <code>putExtra</code>, Is there a way I can pass a whole function? I know there are other ways to do this, but I need to do this with the help of broadcasts. Any help?</p>
  
  <p>Ex: </p>
  
  <pre><code>void myFunc(){ /* foo */ }
  </code></pre>
  
  <p>Can I use <code>myFunc</code> in some other activity via broadcast? I don't mind declaring the function again in the new activity as long as I get data from broadcast.</p>