Questions tagged [parceler]

Parcelable code generator for Google Android.

Parceler is a code generation library that generates the Android Parcelable boilerplate source code.

http://parceler.org

74 questions
1
vote
1 answer

Unable to find generated Parcelable class

I am trying to use Parceler in my android project. This is my Song model. @Parcel(implementations = {SongRealmProxy.class}, value = Parcel.Serialization.BEAN, analyze = {Song.class}) public class Song extends RealmObject { …
Min Khant Lu
  • 712
  • 1
  • 9
  • 20
1
vote
3 answers

How to use Parceler with ArrayList>?

I'm trying to use Parceler to transfer variable of ArrayList>, but it always give error when running, just link intent.putParcelableArrayListExtra("votedetail", arrlist);. Searched and found no example, how to use it? Thank you in advance.
bluehale
  • 7
  • 2
1
vote
0 answers

Wrap/unwrap through Parcel library a RealmList inside one RealmObject within another RealmObject

I have a RealmObject which contains for example these fields: @PrimaryKey String id; JustRealmObject justRealmObject; @ParcelPropertyConverter(SomeRealmObjectParcelConverter.class) RealmList
blink7
  • 51
  • 6
1
vote
1 answer

Compile Time Error When Converting RealmObject Class To Kotlin

This is my original RealmObject with Parceler annotation. @Parcel(implementations = {AlbumRealmProxy.class}, value = Parcel.Serialization.BEAN, analyze = {Album.class}) public class Album extends RealmObject { @PrimaryKey …
Alex Kombo
  • 3,256
  • 8
  • 34
  • 67
1
vote
1 answer

Unable to find generated Parcelable class for io.realm.PersonRealmProxy

Realm 2.0.0 Parceler 1.1.6 I am trying to use the Parceler library with my POJO class that is also used for realm in my android app. However, this line of code will crash Bundle bundle = new…
ant2009
  • 27,094
  • 154
  • 411
  • 609
1
vote
1 answer

Proguard with Parceler and Realm

I'm using Realm and Parceler and everything is working fine but when I enable the Proguard I'm getting an error when doing: Parcels.wrap(obj) I'm getting the following error: org.parceler.ParcelerRuntimeException: Unable to find generated…
FVod
  • 2,245
  • 5
  • 25
  • 52
1
vote
2 answers

RealmProxy files are not being generated

I have been using Parceler to serialize RealmObjects. After updating to version 1.2.0 of Realm, none of the RealmProxy classes are being generated. I have cleaned and rebuilt the project several times unsuccessfully. Here is a snippet of the…
Alex Kombo
  • 3,256
  • 8
  • 34
  • 67
1
vote
2 answers

Can't instantiate abstract class 'base.CreditCard'

I'm facing an awkward problem here, I'm trying to have hierarchy parcelable classes but I'm getting this bizarre error: java.lang.InstantiationException: Can't instantiate abstract class br.com.dinda.models.credit_cards.base.CreditCard at…
Leonardo
  • 3,141
  • 3
  • 31
  • 60
1
vote
1 answer

Saving Android Activity or Fragment state using Parceler

I am using parceler library . I have made an complex object with this . As it says it makes the object parcelable , so I want to use it for saving fragment state . Here is my model @Parcel public class Example { String name; int age; …
1
vote
2 answers

Jacoco failing on Parceler class - Android

I am using the Parceler library on Android (https://github.com/johncarl81/parceler) And I am also using Jacoco for code coverage. However after adding Parceler running my test code coverage with Jacoco now fails with the following error: Caused by:…
Donal Rafferty
  • 19,707
  • 39
  • 114
  • 191
1
vote
1 answer

Missing fields when unwrapping a Parcel object with Parceler library

I have a Java Bean class, annotated with @Parcel(Parcel.Serialization.BEAN) and Gson's @SerializedName on some fields: Question.java: @Parcel(Parcel.Serialization.BEAN) public class Question { private Integer id; private String title; …
1
vote
1 answer

Parceler and SimpleXml as stated in Parceler's readme

Parceler's readme states that it can be used with other POJO based libraries, in particular SimpleXML. Are there any examples available demonstrating the usage? I've used Parceler with GSON successfully: Gson gson = new…
Vadym
  • 964
  • 1
  • 13
  • 31
1
vote
1 answer

Parceler with not basic type android

I am implementing parceler using lib by link It working when i using basic type: int, String, double, ... But now, i have some field with specific type like: context, custom class ? So I must do something with problem? need help
Nguyễn Hoàng
  • 179
  • 1
  • 11
1
vote
1 answer

Parceler use inheriting generic type

I am struggling to find a way to use parceler library in a specific case. Having an abstract class with generic types, like this public abstract class ParentClass { private String id; private O options; public String getId() { …
1
vote
1 answer

Android: Parcel class wrapping error

I created class File with to classes and primitive types. When i try to wrap it, have an error: Unable to find generated Parcelable class, verify that your class is configured properly and that the Parcelable class is generated by…
androidAnonDev
  • 459
  • 3
  • 5
  • 13