0

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?

tsil
  • 2,069
  • 7
  • 29
  • 43

1 Answers1

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