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
3
votes
2 answers

Use Android Annotations with Parceler

I'm using Android Annotations in my Android Project. As implementing Parcelable is a lot of work I want to use Parceler and the @Parcel annotation. The problem is that if I want to use the @FragmentArg annotation by Android Annotations it doesn't…
luckyhandler
  • 10,651
  • 3
  • 47
  • 64
3
votes
2 answers

Trying to unwrap an object when I send it as a bundle

I have a complex class that I used a @Parcelable (Im using the Parceler library https://github.com/johncarl81/parceler) @Parcel public class Event { public int id; public String title; public String description; public String…
fred jones
  • 245
  • 1
  • 2
  • 10
2
votes
0 answers

Android platform makefile (Android.bp), how to use kotlin @Parcelize annotation to create aidl files?

I am trying to use kotlin android extensions plugin Parcelize on Android platform. I am on Kotlin 1.3.72. I generated successfully a unitary dumb Rect.java without the plugin (by implementing parcelable methods manually) BUT this is kind of annoying…
2
votes
1 answer

RealmProxy Classes are not generating in Realm 5.0.0

I am using realm with parceler. As per documentation I have to add following annotation : @org.parceler.Parcel(implementations = {SomeClassRealmProxy.class},value = org.parceler.Parcel.Serialization.BEAN,analyze = {SomeClass.class}) But after…
2
votes
1 answer

Parceler: Unable to find read/write generator for type io.realm.RealmList

My app needs to parcel some objects with realm list attributes. This is the error: /StudioProjects/ML/dat-core-android/datcorelibrary/build/tmp/kapt3/stubs/release/com/ret/datcorelibrary/model/UserTest.java:29: error: Parceler: Unable to find…
Sami Issa
  • 1,695
  • 1
  • 18
  • 29
2
votes
1 answer

error: Parceler: Unable to find read/write generator for type io.realm.RealmList

I'm programing a project by using Kotlin: Kotlin version: 1.1.3-2 Parcerler version 1.1.9 Realm version 3.2.0 I am using Parceler for FragmentArgs with RealmObjects and getting the following crash. Parceler: Unable to find read/write generator for…
undervoid
  • 193
  • 1
  • 2
  • 10
2
votes
1 answer

Can I use Realm + Parceler with public attribute ( without getter / setter)?

It seems that if I don't generate the getters and setters for my RealmObject and send it to another activity using Parceler, all the attributes are reset to their default value. Is there a way to avoid creating these getters and setters and keep…
seb
  • 312
  • 1
  • 4
  • 13
2
votes
3 answers

ClassNotFoundException when unmarshalling: io.realm.NeedRealmProxy$$Parcelable

I got this error when running this snippet of code from a fragment HomeFragment public void onTaskClick(View view, Need need, int position) { Log.d(TAG, "onTaskClick() - " + need.toString()); Intent intent = new Intent(getActivity(),…
Mael Fosso
  • 360
  • 6
  • 14
2
votes
0 answers

Parceler: Unable to find read/write generator for type RealmList for backend.model.ProjectInfo#invitations

I am using Parceler for FragmentArgs with RealmObjects (and Lombok) and getting the following build error. Error:(73, 70) error: Parceler: Unable to find read/write generator for type io.realm.RealmList for…
Martin Mlostek
  • 2,755
  • 1
  • 28
  • 57
2
votes
1 answer

Parceler - annotate interface with factories on an implementation

On android when using Parceler, is it possible to annotate an interface using @Parceler and have it pick up possible @ParcelConstructor and @ParcelFactory annotations in implementation classes? The goal is to avoid writing a custom ParcelConverter…
Del
  • 397
  • 2
  • 9
2
votes
5 answers

Android ArrayList of String objects size remains at 0 despite adding to it

I have created a custom class called Song which contains 3 String variables, an int variable and an ArrayList of String items. Now I have the correct getters and setters for all of the variables and such, however the issue is that, when I assign…
Keno
  • 2,018
  • 1
  • 16
  • 26
2
votes
1 answer

How to pass the Arraylist of custom Object type from activity to Service using the Parceler library?

I have done this in activity.Here responses variable is the ArrayList of type custom object LeaseDetailResponse. Intent intent = new Intent(TestActivity.this, AlarmService.class); …
c__c
  • 1,574
  • 1
  • 19
  • 39
1
vote
1 answer

Parceler: Code generation did not complete successfully

I faced an error from realm parceler that says "Code generation did not complete successfully". I'm using parceler 1.1.13 and Realm. To make sure the error did not come from a change, I checked-out an older revision. However, the problem still…
1
vote
0 answers

Parceler + Realm + Kotlin: error: cannot find symbol

I'm trying to use Parceler with a realm class created in Kotlin. When I try to build my app, it fails. Here's my Realm class: Parcel(implementations = [com_companyname_models_realm_objects_kotlin_PlayerRealmProxy::class], value =…
DiscDev
  • 38,652
  • 20
  • 117
  • 133
1
vote
1 answer

How to add compiler argument "-AparcelerStacktrace" to debug Parceler Android library

All is in the title ;) I cannot get rid of this error at build time... I've checked how to add the "-AparcelerStacktrace" compiler argument for this library but didn't find it on its Github repo. I've also checked how to simply add a "generic"…
Doc_1faux
  • 141
  • 5
  • 15