android中如何将数组列表对象从一个类传递到另一个类

android中如何将数组列表对象从一个类传递到另一个类,android,Android,我在一个类中的代码是 ArrayList<String> categoryList=new ArrayList<String>(); // Intent mIntent = new Intent(this, listview.class); // mIntent.putExtra("nameOfArray",categoryList); // startActivity(mIntent); for(int i=0;i<do

我在一个类中的代码是

ArrayList<String> categoryList=new ArrayList<String>();

    // Intent mIntent = new Intent(this, listview.class);
    // mIntent.putExtra("nameOfArray",categoryList);

    // startActivity(mIntent);

       for(int i=0;i<docmntElmnt.getPropertyCount();i++)
       {

        SoapObject table = (SoapObject)docmntElmnt.getProperty(i);
        categoryList.add(table.getProperty("Nombre").toString());
        //categoryList.add(table.getProperty("Imagen1").toString());

       }
       Log.d(TAG,"Name and image of soap response is"+categoryList );
ArrayList categoryList=new ArrayList();
//Intent MINENT=新的Intent(这个,listview.class);
//Minent.putExtra(“阵列名称”,分类列表);
//星触觉;

对于(int i=0;i您可以使用
putStringArrayListExtra(字符串名称,ArrayList值)
ArrayList作为额外的内容传递给Intent