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…
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…
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…
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…
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…
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…
I'm basically trying to save an array of Bitmaps between states.
My fragment's onSaveInstanceState:
public void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
…
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…
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}:…
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;
…
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) {
…
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 =…
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)…
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…
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:…