1,663 questions
0
votes
0
answers
55
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 ...
0
votes
1
answer
100
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
2
answers
34
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
170
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 ...
0
votes
1
answer
395
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 ...
0
votes
1
answer
238
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
180
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
0
answers
26
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 ...
17
votes
1
answer
4k
views
'boolean java.lang.Class.isInterface()' on a null object reference
I'm facing this crash on Android 13 at following code.
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.Class.isInterface()' on a null object reference
...
0
votes
1
answer
252
views
Android: Using Parcel to Generate a Deep Copy
I was told that it is possible to create a deep copy of an object by writing the object to a parcel, then immediately reading it out again.
So far, I have tried creating a Parcel and writing the ...
6
votes
2
answers
2k
views
getParcelable() crashes due to null ifTable in AGP 8
I recently updated to AGP 8 and I released an update on to the play store. I am getting reports of some crashes in an area of code that was not changed recently. I am fairly confident this is a crash ...
0
votes
1
answer
294
views
Unresolved supertypes: kotlinx.parcelize.Parceler
I'm trying to migrate from kotlinx.android.parcel.Parcelize to kotlinx.parcelize.Parcelize but I'm getting following issue while doing so:
Supertypes of the following classes cannot be resolved. ...
0
votes
1
answer
57
views
Issue while parsing a list of objects retrieved from Firebase Firestore collection
I am working on an android project and I've been trying to use Firebase Firestore collections. Everything seems fine up until the second activity retrieving the intent with the parsed list of watches.
...
2
votes
4
answers
6k
views
Android getParcelableExtra deprecated in api 33
I want to use intent method for get uri from another activity, but intent.getParcelableExtra is deprecated.if I use
if (SDK_INT >= 33) {
intent.getParcelableExtra("EXTRA_URI&...
0
votes
1
answer
126
views
How to add arraylist of header object to Parcelable object?
I must send an Object value to other Activity, so I found the way to using Parcelable Object. but this is the problem.
The problem is not parcelable object can not be add Parcelable object.
import ...
0
votes
2
answers
4k
views
How to use Parcelize Annotation in Android Kotlin?
I am following https://developer.android.com/jetpack/compose/state#parcelize to make a Parcelable data class with Kotlin in Jetpack Compose, however the @Parcelize annotation is not available to be ...
0
votes
0
answers
436
views
What is the difference between Parcelable and Serializable in Android and which one is the preferred way to pass data? [duplicate]
I've been using Serializable for a while now in Android to pass data between 2 Activities. However, I recently read about Parcelable. Do they work in the same way and which is the best/efficient way ...
0
votes
1
answer
744
views
@IgnoredOnParcel annotation doesn't work for @Parcelize in Kotlin
I try to ignore a field when using the @Parcelize annotation in Kotlin so I am using @IgnoredOnParcel,
Plz guide me, on how to solve this error
error: Cannot figure out how to save this field into ...
-1
votes
2
answers
760
views
Generic extension function Kotlin
Since getParcelable is deprecated for Android Tiramisu and later i want to make an extension function to get the parcelables from my Intent through my Bundle
So i have
val server = if (...
1
vote
0
answers
60
views
Is there a way to unmarshal an Android Parcel object programatically using reflection?
I'm using an Android IBinder interface to read data from a service. My specific case dictates that I don't know exactly what object I'll be receiving from that service (due to versioning and server ...
0
votes
2
answers
212
views
Parcelable error occurred while using the Room
Parcelable error occurred while using the Room.
I'm studying Room, but I don't have much common sense yet. So I don't know why I use Parcelable.
I think there was an error when changing the format of ...
0
votes
1
answer
230
views
Parcelable through broadcastReceiver returns null
I am trying to pass this custom list object to the broadcast receiver.
For that i am passing it like this:
Inside activity:
intent.putParcelableArrayListExtra(PARCEL_LIST_GEO, parcelItems.toArrayList()...
1
vote
1
answer
987
views
java.lang.RuntimeException: Parcelable encountered IOException writing serializable object (name = java.util.ArrayList)
Reaching to ask for your help on this one.
I'm getting the error:
java.lang.RuntimeException: Parcelable encountered IOException writing serializable object (name = java.util.ArrayList)
I'm already ...
0
votes
0
answers
125
views
Class Not Found When Unmarshalling: com.example.Parcelable.User
I'm facing following Errors/Exceptions when receiving data from one App to another App in Kotlin (Android):
Class Not Found When Unmarshalling: com.example.Parcelable.User
mExtras=Bundle[{)}]
...
0
votes
1
answer
491
views
RuntimeException: Exception inflating kotlin:navigation/nav_graph
We had a RuntimeException while we put a safeArgs into the navigation graph and this crash didn't give us any more guide to fix it.
In the first impression, we were following this to ensure that those ...