You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting android.os.BadParcelableException: ClassNotFoundException when unmarshalling: kaaes.spotify.webapi.android.models.TrackSimple when trying to get an extra from a intent to start activity.
To reproduce this I put a saved album in an intent to start an activity:
@Override
public void showAlbum(SavedAlbum savedAlbum) {
Intent albumActivityIntent = new Intent(this, AlbumActivity.class);
albumActivityIntent.putExtra("album", savedAlbum);
startActivity(albumActivityIntent);
}
The problem arises when trying to get this stored saved album in the activity meant to display it:
SavedAlbum album = intent.getParcelableExtra("album");
Please note the exception is about TrackSimple, not SavedAlbum.
The text was updated successfully, but these errors were encountered:
Bump, same happens for kaaes.spotify.webapi.android.models.PlaylistTrack but in my case I'm saving it on onSaveInstanceState and later loading it from the onCreate bundle and what I am saving is an instance of Playlist
I'm getting
android.os.BadParcelableException: ClassNotFoundException when unmarshalling: kaaes.spotify.webapi.android.models.TrackSimple
when trying to get an extra from a intent to start activity.To reproduce this I put a saved album in an intent to start an activity:
The problem arises when trying to get this stored saved album in the activity meant to display it:
Please note the exception is about TrackSimple, not SavedAlbum.
The text was updated successfully, but these errors were encountered: