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
23
votes
4 answers

Use of Parceler with Kotlin data class with constructor for serialization

Is there a way to use Parceler with Kotlin data classes and constructor for serialization without using @ParcelProperty annotation for each field? If I try and use library like this: @Parcel data class Valve @ParcelConstructor constructor(val size:…
Martynas Jurkus
  • 9,231
  • 13
  • 59
  • 101
17
votes
3 answers

Gradle 2.3.0-alpha1 doesn't work data binding

I have a problem after updating to Android Studo 2.3 Canary today. The build completed with no error but when I run the app, the gradle console keeps showing: android.databinding.annotationprocessor.ProcessDataBinding not found Here's my…
10
votes
1 answer

Use of CLEAN architecture in Android with Parceler

I'm using working on a project in the CLEAN architecture where the project is broken into the "Presentation", "Domain" and "Data" modules, where the Domain module hosts the "Entities" that are basically the data models specific to this project. An…
Billy
  • 1,374
  • 1
  • 17
  • 25
8
votes
3 answers

DP5 7.0 - Does adding extras to a pending intent fail?

Adding the linked issue on tracker: https://code.google.com/p/android/issues/detail?id=216581&thanks=216581&ts=1468962325 So I installed the DP5 Android 7.0 release onto my Nexus 5X today. I've been working on an app that schedules local…
7
votes
1 answer

Overriding 'writeToParcel' is not allowed. Use 'Parceler' companion object instead

I used Jetbrains plugin for generating Android Parcelable class in Kotlin, and got these two exceptions (not warnings, unlike here, so the project doesn't build): CREATOR_DEFINITION_IS_NOT_ALLOWED: 'CREATOR' definition is not allowed. Use…
Daniel
  • 307
  • 5
  • 15
6
votes
1 answer

Pass bundle intent in android using MVP

I want to pass the Model data into another activity using Parceler through Bundle intent. My problem is how could I pass the data from Presenter into the View layer to display in another activity using MVP architecture in android?
vidalbenjoe
  • 921
  • 13
  • 37
6
votes
3 answers

Using Parceler with android

I'm trying Parceler library for android. So far I've had only one same error, using plain sample from the documentation. @Parcel(Parcel.Serialization.BEAN) public class Example { private String name; private int age; public String getName() {…
Roman
  • 2,079
  • 4
  • 35
  • 53
4
votes
1 answer

RealmList with @Parcelize annotation

I'm trying to use the new @Parcelize annotation added with Kotlin 1.1.4 with a Realm objet containing a RealmList attribute. @Parcelize @RealmClass open class Garage( var name: String? = null, var cars: RealmList = RealmList() )…
4
votes
2 answers

Parceler ZipException "duplicate entry"

I'm building a project which has two classes (A and B) that both inherit from BaseClass. Both classes, A and B, have the annotation @Parceler. When I build it for a phone with OS ver 4.1.2 (API 16), it gives me this error: Execution failed for task…
Rajath
  • 11,787
  • 7
  • 48
  • 62
4
votes
2 answers

Parceler unwrap giving wrong data

I'm using parceler library to implement Parcelable interface. I have such model @Parcel(Parcel.Serialization.BEAN) public class Ads { private Long id; private String title; private String description; private AdsType adsType; private String…
StupidFox
  • 376
  • 3
  • 19
4
votes
1 answer

Android: convert Parcelable to JSON

I am working with socket.io library which emits messages to the socket.io server. The server expects JSON objects, arrays, etc. My original implementation used JSONOject and JSONArray datatypes. However, I would like to switch to using classes…
Vadym
  • 964
  • 1
  • 13
  • 31
4
votes
2 answers

Usage of parceler (@Parcel) with Realm.io (Android)

I have the following code which produces the error: Error:Parceler: Unable to find read/write generator for type io.realm.Realm for io.realm.RealmObject.realm It was working all fine without extends RealmObject , however I want to use Realm to put…
dowjones123
  • 3,695
  • 5
  • 40
  • 83
3
votes
3 answers

Parceler - Unable to find generated Parcelable class

EDIT After clean and rebuilt, classes are not generated I got this error while trying to use Parcels.wrap() Unable to find generated Parcelable class for xyz.xyz.models.reclamation.Reclamation, verify that your class is configured properly and that…
kristyna
  • 1,360
  • 2
  • 24
  • 41
3
votes
2 answers

Parceler: Unable to find read/write generator for type ForeignCollection

I try to user ORMLite with Parceler, but Parceler catch an error: Error:(44, 36) error: Parceler: Unable to find read/write generator for type com.j256.ormlite.dao.ForeignCollection for CategoryItem.passKeyItems Here is my…
NickUnuchek
  • 11,794
  • 12
  • 98
  • 138
3
votes
3 answers

Parceler and Lombok not working together?

For my android app I use the parceler library and the lombok library. These are the annotations of my class: @Table @ToString @Getter @NoArgsConstructor @Parcel public class MyClass { However, during gradle build, Parceler complains that there is…
cherry-wave
  • 731
  • 2
  • 6
  • 21
1
2 3 4 5