List<Hashtable<String, String>> info = new ArrayList<Hashtable<String, String>>();
String[] selItemArray = new String[info .size()];
//copy your List of Hashtable Strings into the Array ,and then pass it in your intent
// ....
Intent intent = new Intent(InfoClass.this, AnotherClass.class);
intent.putExtra("info_array", selItemArray);
startActivityForResult(intent, 0);
тип массива
putIntegerArrayListExtra(String name, ArrayList<Integer> value)
putParcelableArrayListExtra(String name, ArrayList<? extends Parcelable> value)
putStringArrayListExtra(String name, ArrayList<String> value)
putCharSequenceArrayListExtra(String name, ArrayList<CharSequence> value)
Then you can read from you next activity by replacing put with get with key string as argument,eg
myIntent.getStringArrayListExtra("key");
Массив:
Bundle b=new Bundle();
b.putStringArray(key, new String[]{value1, value2});
Intent i=new Intent(context, Class);
i.putExtras(b);
In order to read:
Bundle b=this.getIntent().getExtras();
String[] array=b.getStringArray(key);
Надеюсь, это поможет вам.
См .: Передача списка объектов между действиями