how to send the array in intent in android studio?
i have two array list
Eve_id[];//here i had stored 5 diffrent values.
sc_id[];//here i had stored 5 diffrent values.
now i have to send these two array to next activity,i have used the code like this
1st activity`
Intent k = new Intent(context, Receiver.class);
k.putExtra("Event_id", Eve_id);
k.putExtra("schedule_id", sc_id);`
2nd activity
Bundle extras = getIntent().getExtras();
long[] event_id = extras.getLongArray("Event_id");
int[] schedule_id = extras.getIntArray("schedule_ids");
i dont know weather it is correct are not ,but i am not able to receive any data! any one can suggest how to solve this!