[Solved] Make array of variables?


you can ad an arrayList of integers, strings, or paracelables as an extra for an intent

from the first activity

Intent i = new Intent(context,SecondActivity.class);
i.putIntegerArrayListExtra(name, value);
i.putStringArrayListExtra(name, value);
i.putParcelableArrayListExtra(name, value);

in the second Activity onCreate()

Intent i = getIntent();
ArrayList<String> myStrings = i.getStringArrayListExtra(name);

4

solved Make array of variables?