title: Invoking a method of an object contained in another android activity
body: <p>In my app the activity which is currently running needs data from an activity which has started it. The parent activity has an object which method needs to be invoked to get the required data.</p>
  
  <p>I am doing like this</p>
  
  <h2>In the ParentActivity</h2>
  
  <pre><code>public static Puzzle  puzzle;  // Puzzle is a class
  </code></pre>
  
  <h2>In the child activity</h2>
  
  <pre><code>Puzzle puzzle = ParentActivity.puzzle;
  
  ArrayList&lt;String&gt; cells = puzzle.getItemList();
  </code></pre>
  
  <p>It seems to work. But I am not sure about correctness of this approach. It allowed in android.
  Will android run-time form destroying the parent activity. </p>