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
1
vote
2 answers

BadParcelableException (very rare and random happening) after adding Interface callback into Bundle?

I see (not regularly - just very rarely = cca 1 in 1000 times) BadParcelableException when trying to retrieve from Bundle. Anybody has any idea why it happens? I thought it should either happen always, or never, not randomly. This is my…
qkx
  • 2,383
  • 5
  • 28
  • 50
1
vote
1 answer

getParcelable from Bundle sometimes causes BadParcelableException in java android

[Error] Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mypackage/folders.views.activity.MainActivity$17}: android.os.BadParcelableException: Parcelable protocol requires a Parcelable.Creator object called…
Nancy
  • 129
  • 2
  • 13
1
vote
1 answer

Parcelable protocol requires that the class implements Parcelable

Some times, I got this error, i don't know what is wrong in my code Please help! Any suggestion code it will help. Here it is my error report: com.example E/UncaughtException: java.lang.RuntimeException: Unable to start activity…
naima
  • 129
  • 1
  • 12
1
vote
2 answers

How to put latlong object in parcelable class

I want to send class Object to another activity which contains Latlng. But it gives exception. Below is my class which has latlng field. import android.os.Parcel; import android.os.Parcelable; import android.support.annotation.Keep; import…
FaisalAhmed
  • 3,469
  • 7
  • 46
  • 76
1
vote
1 answer

How to pass parcelable variable values using intent in android?

I am getting BadParcelableException in my application on passing parcelable values using intent action. How to pass parcelable values and retrieve them in another classes? Below is my code: public MySample mySample; public class MySample…
Vicky
  • 921
  • 1
  • 11
  • 33
1
vote
1 answer

Intent putExtra with array of object implementing Parcelable

I want to add an array of instances of Person class, this class implements Parcelable. I tried the code below setResult(Activity.RESULT_OK, new Intent().putExtra("persons", persons)); finish(); to store the array in an intent from the sender…
1
vote
0 answers

Android Parcelable Object giving ClassNotFoundException when unmarshalling

I have wrote two Parcelable class, i.e. ScheduleItem and Venue. ScheduleItem.java public class ScheduleItem implements Parcelable { private static final SimpleDateFormat FORMATTER = new SimpleDateFormat( "yyyy-MM-dd HH:mm:ss Z"); …
0
votes
0 answers

BadParcelableException when pressing "Recent Apps" button in DialogFragment

I am trying to make a DialogFragment which can be reused in different Fragments without creating a new one using the following code. All this code that I am going to put below works correctly, the buttons work, the texts are also seen, the problem…
0
votes
0 answers

android.os.BadParcelableException: Parcelable encountered IOException writing serializable object (name = com.example.x.PlayersFromXML)

I'm trying to pass my player data into another activity which has been parsed from an xml file (PlayerFromXML). However, when I run MainActivity, it boots up just fine, but when I click a player, my app crashes and returns this error -…
Chewie
  • 11
  • 1
0
votes
0 answers

How to add custom class to system classLoader?

I have two custom classes: class A: Parcelable{} class B: Parcelable{} When I save and restore them (during rotation) at each place I need set classLoader to Bundle. Otherwise I will get BadParcelableException: ClassNotFoundException when…
0
votes
0 answers

ClassNotFoundException when unmarshalling (Passing object between differente apps)

I have a little problem about Parcelable objects and passing it between activities. I have two different apps, Activity A request Activity B by an Intent with startActivityForResult, B Activity sends back a custom object (Class C) which is defined…
0
votes
1 answer

android.os.BadParcelableException: ClassNotFoundException when unmarshalling between server and client using messenger

I am getting android.os.BadParcelableException: ClassNotFoundException when unmarshalling. I checked all previous posts but not able to solve my Problem. I also tried using bundle.setClassLoader(MyClass.class.getClassLoader()); readFromParcel(in)…
0
votes
1 answer

Parcelebles ClassNotFoundException RecyclerView

I am new to android kindly bare with my question id it too basic. I tried my best to find solution online but couldnt. I was trying out RecyclerView Concepts. While Copying array of data to parcelebles array I am getting an error stating "Class…
0
votes
1 answer

BadParcelableException when restarting app after its been killed by os

I have a tabbar based app using fragments that uses parcelable objects between the fragments/activities. It consists of 4 fragments - the main ones being a mapview (first) and a list view (second). The app goes into the background and loads up again…
skeg0
  • 187
  • 1
  • 1
  • 10
0
votes
1 answer

Error while sending parceble object to other activity

I have a class classOne which extends parceble. I'm Using classOne class to parse json lets say feeds message json Here is my code public class classOne implements Parcelable{ public String createdAt = null; public String…
Prachi
  • 2,559
  • 4
  • 25
  • 37