Questions tagged [parcelable]

parcelable refers to the capability of an object to be converted to a parcel, a container for reading and writing data of various type, using type specific rather than generic serialization

parcelable is defined in the Android API as as interface for classes whose instances can be written to and restored from a parcel

References

1664 questions
0
votes
1 answer

Can't save state of RelativeLayout

I am making an application which has an activity where the user can add a picture to an object, here I give the user the choice between selecting a picture from the gallery or making a new one using the camera. Both of these options start an Intent…
Dennis van Opstal
  • 1,294
  • 1
  • 22
  • 44
0
votes
1 answer

Int transform into something different after parcelable

I'm having a object like this: public class CommunityCurrencyContent implements Parcelable { private Double balance; private Long creationDate; private String description; private Double offerCount; private String communityIcon; …
user1007522
  • 7,858
  • 17
  • 69
  • 113
0
votes
4 answers

Saving/Restoring custom ArrayList on Android screen rotate?

I have a custom ArrayList of MovieItems that I want to save and restore on screen rotation. I checked out this post - How to save custom ArrayList on Android screen rotate? - and implemented and adapted some of the codes but the saving and restoring…
Ben Wong
  • 691
  • 2
  • 19
  • 29
0
votes
2 answers

How to send stream (InputStream / OutputStream) to aidl?

I have a application s works on IPC AIDL process, and i want to share stream between process (My Application and AIDL process) then how to do it. I know we can send only primitive data types and parcelable objects through aidl but my requirement is…
Tushar Purohit
  • 524
  • 7
  • 25
0
votes
0 answers

Android Parcelable nested list of objects

I am trying to make my deep nested list of objects parcelable but the application keeps crashing due to the "Out of memory exception" when simulating process restart due to low memory. My classes: class Base implements Parcelable{ protected…
arjang27
  • 241
  • 6
  • 13
0
votes
1 answer

Parcelable android

package com.iconasystems.android.models; import android.os.Parcel; import android.os.Parcelable; import com.parse.ParseClassName; import com.parse.ParseObject; import java.util.UUID; /** * Created by Alex on 2/15/2016. …
christoandrew
  • 437
  • 4
  • 17
0
votes
0 answers

Parcel: unable to marshal value Vector3

I am trying to pass a Model object containing an arraylist from an activity to another, but it seems like I miss something with the Parcelable class or the intent stuff. This is the error i get: java.lang.RuntimeException: Parcel: unable to marshal…
0
votes
1 answer

Parceling a HashMap that has an array of strings

I have the following object: public class HolderLanguageText implements Parceable { final private HashMap mapText; public HolderLanguagetext(Parcel in) { mapText = new HashMap(); …
Kristy Welsh
  • 7,828
  • 12
  • 64
  • 106
0
votes
0 answers

Lost String in Parcelable

I'm creating an alarm clock app and i have a problem with passing the data about repeating days in parcel. I thought that it might be something with boolean array so i switched it to String but still problem remains. Any idea what is wrong with my…
Yogurt33
  • 75
  • 1
  • 6
0
votes
1 answer

Android - Proguard stripping away Parcelable Creator

I have a library project which has Proguard rules on it. These are stated below -keep class * implements android.os.Parcelable { public static final android.os.Parcelable$Creator *; } -keepclassmembers class * implements…
sha
  • 1,410
  • 2
  • 18
  • 37
0
votes
0 answers

Parcelable circular dependency

You have Class A that implements Parcelable and contains a List of objects of class Class B. Class B that implements Pracelable and contains a field of Class A. One I implemented the Parcelable methods for each of them, I obtain a stackoverflow…
Smallware
  • 72
  • 6
0
votes
1 answer

List Returned By RetroFit/GSON Seems to Have Quantum Mechanical Properties

I am using RetroFit 1.9 with a GSON converter that has been working well for me so far. Now I am trying to marshall the List of custom Parcelable objects received in the Callback, and I am met with a ClassCastException: 02-02 09:53:49.921…
Bryan
  • 14,756
  • 10
  • 70
  • 125
0
votes
1 answer

Android Parceler library: Unable to find generated Parcelable class

I'm trying to use the Parceler library in my Android Studio project. The project has two modules, one is the app itself and the other is a personal android core library containing various helpers and generic entities. However, I've added the…
Androidian
  • 1,035
  • 1
  • 16
  • 40
0
votes
0 answers

Getting items from parcelable array list

I'm having troubles with getting content from getParcelableArrayList. I have data model class that extends parcelable @DatabaseTable(tableName = "note") public class Log implements Parcelable { @DatabaseField(id = true, index = true) UUID…
robigroza
  • 559
  • 1
  • 5
  • 22
0
votes
0 answers

Parcelable does not unmarshall nested objects

I am including the whole structure below so you can see what I have done. But it is not working. When I send a NutHouse object across activities, the NutHouse arrives but the ArrayList is empty. public class NutHouse implements Parcelable{ …
Nouvel Travay
  • 6,292
  • 13
  • 40
  • 65