Top "Parcel" questions

In Android, a Parcel is a container for a message (data and object references).

How To: Parcel a bitmap in Android

I have a serialized class which I want to add a bitmap to, but Bitmap doesn't support serialize. Instead I …

android bitmap parcelable parcel
android parcelable string array

I have ArrayList<String> ids = ArrayList<String>(); What would be the cleanest way to make it …

android string arraylist bundle parcel
NullPointerException (etc) from Parcel.readException

Exceptions that look like this are confusing: FATAL EXCEPTION: main java.lang.NullPointerException at android.os.Parcel.readException(Parcel.java:1437) …

android parcel
Writing Objects members to Parcels

So far I've been chugging along with Parcelable objects without issue, mainly because all of their members have been types …

java android serialization parcelable parcel
How do I use jQuery and jQuery-ui with Parcel (bundler)?

I installed jquery(3.2.1) and jquery-ui-dist(1.12.1) via npm. (they're not included as script tags in html) In client script I use: …

jquery jquery-ui parcel
How to define parcelable of interface type in .aidl file?

I have an .aidl file that defines a single parcelable of an interface type, let's say parcelable MyInterface; Whereby MyInterface …

android parcelable aidl parcel
Putting a Bitmap into a Bundle

I want to pass a String and a Bitmap to a Service using AIDL. The Service implements this AIDL method: …

android bitmap bundle parcelable parcel
How to use writeStringArray() and readStringArray() in a Parcel

I recently came across a very stupid (at least from my point of view) implementation inside Androids Parcel class. Suppose …

java android marshalling parcelable parcel
TransactionTooLargeException only on Nougat

I've go an app that works well on devices with Android versions lower than Nougat. When I launch the app …

android android-7.0-nougat parcel android-7.1-nougat
Android - Parcel: unable to marshal value

I'm trying to pass data through activities with Parcelable. This is my code : public class Player implements Parcelable { public static …

android parcelable parcel