1,663 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
68
views
Is there a way to run an Android Studio scratch file that uses classes implementing android.os.Parcelable?
I have some data classes for my Android app, and would like to play around with them in a scratch file (or something similar). As long as they don't use the Android Platform API, I can use them in a ...
2
votes
2
answers
393
views
unable to import id("kotlin-parcelize") and navigation safe args in new android studio version
I just updated my Android Studio to the latest version and started creating a new project, and I am facing problems with the latest Android dependencies system
I tried with id("kotlin-parcelize&...
0
votes
1
answer
112
views
Class not found when unmarshalling: com.google.firebase.Timestamp,
I am trying to send a timestamp to another activity using intent.putExtra("timeStamp", timeStamp) however on some versions of android (it seems to be older versions in general) I get the ...
0
votes
1
answer
154
views
Why ListDetailPaneScaffold needs a custom Parcelable class?
On the documentation they say this:
Basic usage Implement ListDetailPaneScaffold as follows:
Use a class that represents the content to be selected. This class
should be Parcelable to support saving ...
0
votes
2
answers
42
views
android parcelable cast crash release version
I am working on a flutter project that integrate RFID android pistol device to the application.
Using pigeon to communicate to native android api.
While debuging android studio at RFID device I ca ...
0
votes
1
answer
483
views
Unparcelling of ... of type VAL_PARCELABLE consumed 2068 bytes, but 3496 expected
When I unparcel my Kotlin data object class, a Log.wtf is called internally somewhere alerting me that it expected a certain amount of bytes, however some of those were not found.
Unparcelling of ...
0
votes
1
answer
173
views
Parcelize annotation not working when inheritance
I have 3 classes
@Parcelize
open class Parent():Parcelable
data class Child1():Parent
data class Child2():Parent
I want to pass data from one activity to another in container class which is
class ...
2
votes
1
answer
1k
views
Now in Android Application Structure (kts) need to add Parcelable plugin to some modules and features
I'm using the "Now in Android" multi module application as my "learn by example" base however I've hit another snag from a requirement to my data classes to support Parceable.
As ...
0
votes
1
answer
410
views
A field 'stability' is added in my Parcelable classes
Here is my class:
public class OutstandingContact implements Parcelable {
public String phoneNumber;
public String gstIn;
public String cin;
public String email;
public String ...
-1
votes
1
answer
874
views
Passing An Object In Api level 30 android 11 version
i am trying to pass data object from one activity to another activity using parcelable. it doesn't work in api 30 and android 11 version. i would like to know how can i pass a large size object in ...
0
votes
1
answer
244
views
Gson.toJson(PrinterInfo) returns empty object
I'm trying to serialize an android.print.PrinterInfo object to JSON using Gson (version 2.9.0):
val type: Class<*> = data.javaClass
json.beginObject()
json.name(type.name)
json.value(gson.toJson(...
0
votes
1
answer
621
views
How do I define a custom class with Parcelable using Stable AIDL?
With the introduction of Stable AIDL, defined parcelables are required to be structured (Parcelables with their fields defined in AIDL are called structured parcelables).
https://source.android.com/...
0
votes
1
answer
181
views
when i use kotlin-parcelize in my application,after i build my project ,i get a error : can't find symbol readFromParcel
when i use kotlin-parcelize in my application,after i build my project ,i get a error : can't find symbol readFromParcel.
this is my BtDevice kotlin file :
import android.os.Parcelable
...
0
votes
1
answer
38
views
Parcel/un-parcel list of instances from base generic class
I have a base generic abstract class, lets call it Base<T> class.
This class extended by few subclass, with different types for T mData.
Let's say that I have class Sub1 extends Base<byte []&...
0
votes
0
answers
28
views
Entity implements Parcelable
I'm a Android Coder,The version of ObjectBox I was using was 3.1.2, and I couldn't make the entity class implement the Parcelable interface. If I did, I would get an error at run time ==> [class ...