I need to save a map application entity object into `ArrayList<Marker>` in `SharedPreferences`. How do i do that?
Since now i am successfully saving LatLng values in `double` but now i found out i need to save the whole object.
This is my `OnPause()` so far:

```
 @Override
protected void onPause() {
    sharedPreferences = getPreferences(Context.MODE_PRIVATE);
    SharedPreferences.Editor editor = sharedPreferences.edit();
    key = 0;
    for (LatLng latlng : markerList) {
        double lat = latlng.latitude;
        double lng = latlng.longitude;
        editor.putString("key" + key, lat + "," + lng);
        key++;
    }
    editor.putInt("id", key);
    editor.apply();

    super.onPause();
}

```