Yes I'm really new to android and I'm wokring on a very simple app. On my mainActivity I'm creating and array, and want to access the array from a different activity.
public class Activity extends  {
    MyAreas[] myArea;
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
         myArea= new MyAreas[2];
    
         myArea[0] = new MyAreas(33, 44, "Location ", "active");
         myArea[1] = new MyAreas(32, 434, "Location 2", "active");
Class
public class MyAreas{
    public double val;
    public double val2;
    public String name;
    public String status;
    public MyAreas(double val, double val2, String name, String status) {
        this.val= val;
        this.val2= val2;
        this.name = name;
        this.status = status;
    }
I'm trying to access myarea array from my activity2.java, I tried this but didn't work.
private ArrayList<MyAreas> mMyAreasList;
 
     
     
     
    