title: Beginner Android - method to use variables or files across different activities?
body: <p>I am writing a simple application and trying to come up with the best (most simple) approach to what I am trying to do.</p>
  
  <p>Basically it is a simple train management application. One part of this will be keeping track of the cars on the train and also the number of open/occupied seats on each individual wagon.</p>
  
  <p>I thought one approach would be to just have a two arrays. One integer array that holds the number of seats in a wagon. This way I can pop off the last element when a ticket is purchased and always have the correct number. The other array would just hold these int arrays representing the individual wagons. 
  The other approach I considered would be to store and pull the info from a text file. I would think that the first approach would be easier.</p>
  
  <p>So two questions - 1) Is there another approach that I am missing?
  2) (the real question) How can I manipulate/access the arrays between different Android activities. One activity lists the wagons, while another lists the seats, and yet another allows a ticket to be purchased, requiring me to remove an element from the array.</p>
  
  <p>Sorry for the length and thank you for any help.</p>