title: Global tree structure in Android
body: <p>I am making an app for Android which is based on a big tree structure in which I need to change the values of the nodes. Basically the structure is:</p>
  
  <pre><code>private class Node {
      Fields;
      List of child nodes;
  }
  </code></pre>
  
  <p>I need to alter the value of the fields in different activities, so I need to be able to see my structure from most of my activities. My first thought was to implement this as a class, make my tree and pass the tree from activity to activity. But having read up on this, it does not seem to be a good (possible?) idea. Obviously I need to be able to both get and set all the fields of all the nodes.</p>
  
  <p>Besides this tree I need another structure consisting of complex types (classes) which needs to be just as visible as the tree.</p>
  
  <p>I will create the structures on startup, reading the values from a file.</p>
  
  <p>Can anyone tell me how I can accomplish this?</p>
  
  <p>Thanks in advance, </p>
  
  <p>LordJesus</p>