Questions tagged [parcel]

In Android, a Parcel is a container for a message (data and object references). It's a high-performance alternative to Java's standard serialization.

This should not be confused with That Parcel is an application bundler for HTML, CSS, and Js

537 questions
7
votes
2 answers

android.os.BadParcelableException: ClassNotFoundException when unmarshalling: exception

The values are getting passed and execution happens properly but i see these being thrown in logcat and i want to eliminate these , i checked the older forums but nothing in specific .I am posting my code below , please do let me know why would this…
Kavitha
  • 461
  • 2
  • 8
  • 22
7
votes
3 answers

parcel build error: plugin is not a function

I am trying to build a simple web project project structure like this -src --index.html --index.js --style.css package.json yarn.lock I installed parcel-bundler with this yarn global add parcel-bundler And I run the parcel build command parcel…
Lee Jongseo
  • 223
  • 3
  • 8
7
votes
1 answer

@Parcelize and enum classes - Overload resolution ambiguity

I need a clarification about @Parcelize annotation in Kotlin. I've declared this enum class: @Parcelize enum class Source : Parcelable { LIST, MAP } The class is annotated with @Parcelize in order to implement Parcelable interface and it's…
Nicola Gallazzi
  • 7,897
  • 6
  • 45
  • 64
7
votes
2 answers

Parcel JS VUE dynamic images :src

Vue js with parcel bundler cannot load dynamic images
  • Michal Kucaj
    • 681
    • 5
    • 15
  • 7
    votes
    1 answer

    Webpack vs Parcel

    What is advantage and disadvantage between webpack and parcel Webpack: https://webpack.js.org Parcel: https://parceljs.org
    Sivaraj-v
    • 371
    • 1
    • 3
    • 17
    7
    votes
    0 answers

    Android 4.4.2 LocationResult.hasResult(intent) gives Unmarshalling unknown type code

    In my service I have set the FusedLocation request location to send location to static BroadcastReceiver public static class LocationReceiver extends BroadcastReceiver { private String TAG = this.getClass().getSimpleName(); private…
    Johny19
    • 5,364
    • 14
    • 61
    • 99
    7
    votes
    3 answers

    Android Parcel.obtain() returns null?

    i am just developing an Android Application (API 15) and got the following Problem, when trying to write a unit test: I use android.os.Parcel for saving a class (e.g. if the screen is turned around) and send it to another Activity. If i try to unit…
    6
    votes
    2 answers

    How to use Parcel.readBooleanArray()?

    I'm trying to use the readBooleanArray from android.os.Parcel, but readBooleanArray returns void and therefor it's unclear to me how to use this method. I'm using the following method to write something to the Parcel: public void…
    Joost
    • 1,426
    • 2
    • 16
    • 39
    6
    votes
    3 answers

    How to import HTML as a string with ParcelJS

    I'd like to import HTML files as a string with ParcelJS, like this: import testHTML from './testHTML.html'; document.body.insertAdjacentHTML('afterbegin', testHTML); But the docs say: Importing HTML in JavaScript does not statically include the…
    docta_faustus
    • 2,383
    • 4
    • 30
    • 47
    6
    votes
    2 answers

    Marshalling a Notification Parcel

    I'm trying to write a Notification object to a File. The best way I could find was to write the object to a parcel, marshall that parcel to get a byte[] and then write it to a file. Parcel notif = Parcel.obtain(); notification.writeToParcel(notif,…
    sohil
    • 508
    • 1
    • 3
    • 14
    6
    votes
    2 answers

    This experimental syntax requires enabling one of the following parser plugin(s): 'classPrivateProperties, classPrivateMethods'

    I'm trying to bundle my javascript files using parcel everything is going ok except that I get this problem when I run npm run start @parcel/transformer-js: This experimental syntax requires enabling one of the following parser plugin(s):…
    Amine El were
    • 797
    • 2
    • 8
    • 21
    6
    votes
    2 answers

    React application with external plugins

    I'm building a React application bundled using Parcel or Webpack. The application should be able to embed external React components developed by third-parties and hosted elsewhere as modern javascript modules: //…
    yallie
    • 2,200
    • 1
    • 28
    • 26
    6
    votes
    5 answers

    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 on a device with Nougat and I press home button, the app crashes and in logcat I have: !!! FAILED BINDER TRANSACTION !!! (parcel size =…
    Marcin Bortel
    • 1,190
    • 2
    • 14
    • 28
    6
    votes
    1 answer

    ParcelFileDescritor.createPipe(), aka pipe(2), and security

    Note that while I'm asking this in the context of Android, it's more of a general unix question w/ regard to pipe(2) ... To transfer large amounts of data from one process to another, one can use ParcelFileDescritor.createPipe(), then send the read…
    Jeffrey Blattman
    • 22,176
    • 9
    • 79
    • 134
    6
    votes
    3 answers

    Can Nulls be passed to parcel?

    Is it possible to write null to Parcel when parcelling an object, and get null back again when unparcelling it again? Let's assume we have the following code: public class Test implements Parcelable { private String string = null; public…
    Fattum
    • 996
    • 1
    • 9
    • 23
    1 2
    3
    35 36