I saved an ArrayList to a shared preference in Android Studio. What can I do?
By the way, I want to save Long's ArrayList.

  • Answer # 1

    I was using Realm and wanted to save the ID as an array, but RealmResult was in List format, so I was able to change it to RealmResult type after the addition and editing screens were finished

  • Answer # 2

    Is the following helpful?

    [Kotlin] Save ArrayList to SharedPreferences on Android