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
0
votes
1 answer

Can "import org.parceler.Generated" be removed savely?

I mean, imports generally don't effect code unless you use something that is unknown in the current file without giving the full qualified identifier, but this one seems weird to me. It's in a few files and is generally unused. Can "import…
HopefullyHelpful
  • 1,652
  • 3
  • 21
  • 37
0
votes
1 answer

realm with parceler to pass data across activities and services

I am using parceler with realm to pass data from activity to service. i have few restrictions of realm and parceler Restrictions There are some important restrictions to be aware of when using Parceler: If you model contains a RealmList you need…
Hunt
  • 8,215
  • 28
  • 116
  • 256
0
votes
1 answer

Parceler: How to solve issue: error: Item is abstract; cannot be instantiated

I tried to receive list items via Parceler compile 'org.parceler:parceler-api:1.1.5' my code looks like: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); List navItems = new…
NickUnuchek
  • 11,794
  • 12
  • 98
  • 138
0
votes
1 answer

Parceler - unable to find read/write generator for SpannableString

Error:(27, 64) error: Parceler: Unable to find read/write generator for type android.text.SpannableString for android.text.SpannableString span2 Error:(27, 87) error: Parceler: Unable to find read/write generator for type…
Josh Laird
  • 6,974
  • 7
  • 38
  • 69
0
votes
1 answer

Android use Icepick library to save/restore bundle

I'm trying to use Icepick library on our application to save and restore bundle on phone rotation, but the library documentation i cant find good tips to save and classes which implemented by @Parcel annotation, this is simple class which i found o…
mahdi pishguy
  • 994
  • 1
  • 14
  • 43
0
votes
1 answer

Parceler performance with transitive entities

I'm using parceler, and I'm trying to define a structure like this one: Category 1..* Product 1..* Images Each entity has a list, and a parent instance, like this @Parcel public class Category { List products; ... } @Parcel public…
voghDev
  • 5,641
  • 2
  • 37
  • 41
0
votes
0 answers

Android Parceler Library - java.lang.RuntimeException: Parcel: unable to marshal value

I am trying to use the Parceler library for Android. http://parceler.org/ However I am getting the following error when trying to use it on a couple of my Java objects, this is the error I am getting: java.lang.RuntimeException: Parcel: unable to…
Donal Rafferty
  • 19,707
  • 39
  • 114
  • 191
0
votes
1 answer

Using Parceler library with Serialization

I want to use Parceler library with Serialization. This is what I have now without using this library: public class Venue { @SerializedName("id") String venueID; @SerializedName("name") String venueName; @SerializedName("url") String…
MikeB
  • 257
  • 1
  • 4
  • 15
0
votes
1 answer

How to parcel cascading classes with Parceler?

I can parcel some models using Parceler like this: @Parcel(Serialization.BEAN) public class PasswordSetModel { private String mPassword; private String mRepetition; /* Getter & Setter */ ... But if this class is part of another…
Marco Schmitz
  • 219
  • 4
  • 8
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
1 answer

Is it possible to persist 3rd Party Parcelable Objects in Realm?

Does Realm provide support to persist 3rd Party Parcelable Objects (like MarkerOptions class from Maps API)? So, I'm building a route planning app for Android and I need to persist a list of LatLng, MarkerOptions and Polyline objects from the Maps…
vepzfe
  • 4,217
  • 5
  • 26
  • 46
0
votes
1 answer

Crash when trying to leave a fragment that contains a Parceler unwrapped object

I have an abstract class that is annotated with @Parcel. It has a concrete subclass MyMovie but it is not annotated. I can successfully create a fragment by passing MyMovie to the args bundle. All is fine, for both wrapping MyMovie and unwrapping…
Jonas
  • 534
  • 8
  • 16
0
votes
1 answer

Using android Parceler library with minifyEnabled

Whenever I try to minify my project that makes use of the parceler library, I cannot build a release apk because of a lot of warnings from proguard. For example: Warning:org.parceler.transfuse.gen.FilerResourceWriter: can't find referenced class…
flower_green
  • 1,314
  • 2
  • 25
  • 30
0
votes
1 answer

How to parse Json using retrofit and parceler library

I have read that better way is to parse with parcelable instead of serialisable according to this blog post http://blog.robinchutaux.com/blog/a-smart-way-to-use-retrofit/ But how can I customize parsing using Parceler library…
DeniSHow
  • 1,394
  • 1
  • 18
  • 30
1 2 3 4
5