I have a variable of List Long type which I want to save using savedInstanceState. So I need to make it Parcelable. How I do it?
Asked
Active
Viewed 59 times
1 Answers
0
You don't have to make it Parcelable
. Use putLongArray()
to save values and getLongArray()
to retrieve values. If you have a List<Long>
you'll first have to convert it to a long array.

Alex Krupa
- 520
- 5
- 8