Hello I have the following code in activity 1 (Act1)
List<String> args = new ArrayList<>();
args.add("1");
args.add("2");
args.add("3");
args.add("4");
args.add("5");
and I need to send said "args" information to activity2 (Act2)
Intent intent = new Intent(Act1.this, Act2.class);
intent.putExtra("args", args); ??????????????????????
startActivityForResult(intent, SECONDARY_ACTIVITY_REQUEST_CODE);
how do I send it ? and how do i receive it?
the solution is.
send like this
either
and receive it from this other
the args will be treated the same way as if it were a List.