Questions tagged [badparcelableexception]

An Android exception. "The object you are calling has died, because its hosting process no longer exists."

http://developer.android.com/reference/android/os/BadParcelableException.html

32 questions
11
votes
0 answers

android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.facebook.flatbuffers.helpers.FlatBufferModelHelper$LazyHolder

I'm seeing this crash in Crashlytics for an app that's currently in production: Caused by android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.facebook.flatbuffers.helpers.FlatBufferModelHelper$LazyHolder at…
Charles Madere
  • 6,642
  • 5
  • 35
  • 34
9
votes
2 answers

BadParcelableException: ClassNotFoundException when unmarshalling

I'm pretty new to Serializable and Parcelable. I'm having a hard time passing an instance of this object from an application to a remote service: public class Event implements Parcelable, Cloneable { /** Defines under what Bundle's key…
m0skit0
  • 25,268
  • 11
  • 79
  • 127
8
votes
4 answers

YouTube Android Player API throws "BadParcelableException ClassNotFoundException when unmarshalling: asc" with new YouTube version

Filing bug to YouTube Android Player API Library engineers: see android-youtube-api tag Over the course of the past week and a half, I've noticed this weird BadParcelableException steadily increasing in our app and have nailed it down to YouTube's…
8
votes
1 answer

BadParcelableException - BroadcastReceiver intent crash

This error seems to happen sporadically, which is odd. It usually works fine, but occasionally it creeps up. Here is my code, which is in a BroadcastReceiver: public void onReceive(Context context, Intent intent) { MyCustomResponseMsg message…
4
votes
1 answer

Android Parcelable order

I've had an issue with some Parcelable custom classes that I am using for an android app, which I've managed to resolve in a very odd way. I had a crash occuring when reading from a parcelable only in a few specific cases (which has led me to think…
3
votes
1 answer

Pass parcelable object between activity

I have the following classes that implement a parcelable interface. User public class User implements Parcelable { public long id; public String username; public String email; public String firstName; public String…
3
votes
2 answers

ClassCastException when unmarshelling parcelable array

I'm basically trying to save an array of Bitmaps between states. My fragment's onSaveInstanceState: public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); …
2
votes
2 answers

How to parcelize a function in kotlin

I want to make a parcelable data class to put bundle. Also this data class containing a function that I will invoke. But when I put the app back , I am getting exception with parcelize. Here is my data class that parcelable, @Parcelize data class…
emreturka
  • 846
  • 3
  • 18
  • 44
2
votes
1 answer

android.os.BadParcelableException: ClassNotFoundException when unmarshalling

We are facing getting a BadParceableException and we have no idea why. Above is the stacktrace: Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{br.com.my.app/br.com.my.app.commons.ui.MainActivity}:…
2
votes
3 answers

Find the error: parcelable BadParcelableException

I'm having the famous BadParcelableException, but I can't see where is the problem, here is my Parcelable class: public class PaymentInfoViewModel implements Parcelable { private long idEstablishment; private String nameEstablishment; …
guisantogui
  • 4,017
  • 9
  • 49
  • 93
2
votes
2 answers

Correct way of implementing Parcelable

What is the correct way of implementing the Parcelable interface in Android? According to the documentation you should implement the writeToParcel method and have a CREATOR. public void writeToParcel(Parcel out, int flags) { …
2
votes
0 answers

Unchecked assignment: 'java.util.ArrayList' to 'java.util.ArrayList' less... (Ctrl+F1)

I am retrieving file info from the another activity into my main activity.But I facing the Unchecked assignment problem.My code is as follows.Would anyone can tell me what to do to solve this problem. Intent i = getIntent(); Bundle b =…
2
votes
1 answer

Bad Parcelable Exception

I have used fragments to communicate with a Fragment Activity, and this Fragment Activity passes its reference to handle the click events in the Fragment as below. Bundle tempBundle = new Bundle(); tempBundle.putParcelable("Interface", (Parcelable)…
1
vote
1 answer

I'm trying to pass an Object which contains an ArrayList and some other variables

I'm trying to to pass a parcelable Object between two activities (a game activity and a pause screen activity) because i need to save and restore the position of the enemies on screen, the score and the timer. Now, when i did it i got the score and…
1
vote
1 answer

Android Kotlin : ParcelableArrayList works for Fragment argument but crashed when used in intent extra

I am trying to pass some data with ParcelableArrayList in my Android app written in Kotlin. The data class is very simple: package com.example.testapp import android.os.Parcel import android.os.Parcelable class Data(val name: String, val size:…
Robin
  • 10,052
  • 6
  • 31
  • 52
1
2 3