title: How to create an ArrayList that is accessible by different classes in android?
body: <p>I got a CameraView class (with an onPreviewFrame) which on each incoming frame calculates a value of 1 or 0 depends on the frame brightness, I want that on each incoming frame the calculated value will be add to an ArrayList.
  The problem begins when I need to read the data that is in the ArrayList from my MainActivity class.</p>
  
  <p><strong>How do I create a list that different class can get to?</strong></p>
  
  <p>I know it's relatively simple but i'm new to java/android and trying to wrap my head around how it all works.</p>