parcelable Questions

5

Solved

Basicly I have the following structure in my app: It would be straightforward to implement such a structure without the abstract class ProjectItem, but in this case I don't know how to implement...
Cleres asked 22/3, 2014 at 11:0

4

Solved

For my Android application, I get several unmarshalling errors although I think I've done everything that is needed to properly save and load objects via Parcelables. Can you tell me what's wrong w...
Coelostat asked 21/12, 2012 at 21:39

2

Solved

During the implementation of the passing parameter solution, in navigation between modules, I came across a serialization error. Deeplinks, as far as I know, accepts custom argument types, which ar...
Samella asked 29/1, 2020 at 21:4

5

Solved

I have an ArrayList with custom objects that I would like to be able to save and restore on a screen rotate. I know that this can be done with onSaveInstanceState and onRestoreInstanceState if I ...
Roturier asked 19/9, 2012 at 22:34

6

Solved

How do I replace annotation class Parcelize from package kotlinx.android.parcel with @Parcelize which is not coming from the kotlin-android-extensions plugin?
Possibly asked 20/11, 2020 at 7:2

12

Solved

I'm having app crash on resume because of Unmarshalling exception. I've checked all the Serializables have constructor with no parameters and even checked all the serializables using ObjectStream (...

2

I'm getting this error Caused by java.lang.IllegalArgumentException: Duplicate key in ArrayMap: null at android.util.ArrayMap.validate(ArrayMap.java:550) at android.os.Parcel.readArrayMapInternal(...
Mccullum asked 3/9, 2016 at 11:52

21

Solved

I have the following in code in my onClick() method as List<Question> mQuestionsList = QuestionBank.getQuestions(); Now I have the intent after this line, as follows : Intent resultInt...
Nettlesome asked 28/11, 2012 at 9:34

4

I'm unable to create generic structure togother with @parcelize annotation. I want constructor to be used as construcor for Jason, Room, and Parcelable. Lets assume we have class @Parcelize class...
Dogwatch asked 4/1, 2018 at 14:31

6

Solved

I have a class that I use as my data model for a RecyclerViewin order to pass object of this class from one activity to another via Intent I had to make it Parcelable The problem is now that I am ...
Limeade asked 13/10, 2017 at 11:27

16

Why does Android provide 2 interfaces for serializing objects? Do Serializable objects interopt with Android Binder and AIDL files?
Alkahest asked 23/7, 2010 at 23:26

4

Solved

I am getting this error while trying to read the bundle from another fragment where I am sending the NewVehicle object. Error : Class 'NewVehicle' is not abstract and does not implement abstract me...
Thermodynamic asked 12/1, 2021 at 17:50

11

Solved

I'm trying to make my objects Parcelable. However, I have custom objects and those objects have ArrayList attributes of other custom objects I have made. What would be the best way to do this?
Whaling asked 24/8, 2011 at 20:1

14

Solved

I'm trying to make an ArrayList Parcelable in order to pass to an activity a list of custom object. I start writing a myObjectList class which extends ArrayList<myObject> and implement Parcel...
Yulan asked 1/6, 2011 at 12:42

3

Writting custom views that keep their state across configuration changes in Android is verbose, look at the amount of boilerplate code for saving the state of just one field: private class SavedSt...
Acquirement asked 1/8, 2019 at 13:58

3

Solved

I'm running into a problem with implementing Parcelable-based state persistence in a View. Namely, as I need to implement the methods of BaseSavedState like this: class SavedState : BaseSavedState...
Orb asked 11/8, 2018 at 11:48

10

Here is my model class: public enum Action { RETRY, SETTINGS } private int imageId; private String description; private String actionName; private Action action; public NetworkError(int imageId...
Lazybones asked 3/7, 2016 at 22:44

1

Solved

While retrieving information in GET, I get proper response. Now, I am trying to send some data back to Server using Post call. But when I do it, I get classCastException Here is model class public ...
Bibbie asked 15/11, 2021 at 14:38

6

Solved

Can anyone please explain how to migrate to the new kotlin-parcelize? I tried: Replace apply plugin: 'kotlin-android-extensions' with apply plugin: 'kotlin-parcelize' in app build.gradle Replace i...
Gony asked 24/11, 2020 at 16:50

16

Solved

I'm currently using the excellent AutoParcel in my Java project, which facilitates the creation of Parcelable classes. Now, Kotlin, which I consider for my next project, has this concept of data c...
Clinician asked 5/11, 2015 at 18:19

1

I am using this app as a framework and trying to pass an object to my own UI Phone Call . But when I try to put my object into myAdapter: Call.putExtra("itemObject", items.get(position)); I get ...
Unseam asked 10/4, 2019 at 20:16

5

Solved

Using Realm for Android I have a class: public class Entry extends RealmObject implements Parcelable { ... } Parcelable interface contains methods like describeContents(), writeToParcel() and Rea...
Comanchean asked 1/12, 2014 at 15:5

1

I have been trying to display model Arraylist from one activity (data displayed in recyclerview) to another activity's recyclerView by using parcelable. I have managed to implement the parcelable p...
Puffball asked 19/6, 2021 at 20:57

2

Solved

My Project has few classes that extends Parcelable. Do I need to 'keep' them in proguard rules while obfuscating. What is the general practice for parcelables?
Schrock asked 18/3, 2016 at 5:31

5

Solved

Why bundle has getParcelableArrayList, getParcelable methods; but Intent has only putParcelableArrayListExtra method? Can I transmit only object<T>, not ArrayList of one element? Then, what i...
Triton asked 11/4, 2012 at 13:58

© 2022 - 2025 — McMap. All rights reserved.