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.
How do I create a list that different class can get to?
I know it's relatively simple but i'm new to java/android and trying to wrap my head around how it all works.