I am posting some code to understand which array can be used globally in any activity and the array may be needed in any activity.
     Intent intent          =   getIntent();
     JSONArray beaconsArray     =   null;
     String jsonArray       =   intent.getStringExtra("activeBeaconsArray");
     try 
        {
            beaconsArray = new JSONArray(jsonArray);
            System.out.println(beaconsArray.toString(2));
        } 
     catch (JSONException e) { e.printStackTrace();}
Should i store beaconsArray in any static array variable in a separate class so that I can use it any activity wherever needed  OR should I make parent class that will be super class of all those classes which need this array (beaconsArray ) ?
I do not want to fetch it again and again from database!
 
     
     
    