answersLogoWhite

0

"Typically, data must be transferred from one activity to another while designing apps. A related intent object has to include this data. To get the data ready for transfer, certain further steps are needed. The object needs to be parcelable or serializable to accomplish that.

Serializable:

  • Serializable is a Java interface that is widely used. With this method, you merely implement the interface to designate a class as serializable, and Java will do the rest.

  • The technique makes use of reflection, and numerous new things are produced. The result is the heavy rubbish collection and subpar performance.

Parcelable:

  • An Android-specific interface is called Parcelable. You carry out the serialization by yourself in this method.

  • Because reflection is not employed in this operation, no garbage is produced.

  • Since Parcelable circumvents various issues with the built-in Java serialization mechanism, it is significantly more efficient than Serializable. It is also quicker and produces better - results because it has been tailored for use in the development of Android."

User Avatar

market

Lvl 3
2y ago

What else can I help you with?

Related Questions

What is bundle in android?

A mapping from String values to various Parcelable types.


Will the Vido Mini One be upgraded to android 4.4 and is there much difference to android 4.2.2 and 4.4.0?

The Vido mini will be upgraded to android 4.4 but there is no much difference between android 4.2.2 and 4.4.0.


What is the difference between android and HTC?

Android is the company. the made HTC


What is difference between android and iPod?

Android devices are powered by Android OS while iPod are powered by Apple's iOS.


What is the difference between android and proprietary?

banda


What is the difference between an android and a HTC?

android is a operating system whereas HTC is a mobile manufacturing company


What is the difference between android and symbian operating system?

it is latest


What is the difference between android and symbian operating system used in mobile?

on android we install any soft like window OS


What is the difference between an Android phone and a Smartphone?

Android is an operating system in which some smartphones use. A smartphone is something that allows you to use the Android system and download apps for multilple reasons.


What is the difference between android and java used as mobile os?

java is a programming language and android is a mobile phone platform developed by google.


What is the difference between Android layout gravity and Android gravity in Android?

Both are the properties of Linear Layout. But the main difference is that in android application android:layout_gravity manage control position in layout and android:android:gravity manage text position inside layout. android:gravity arranges the gravity of the content of the View in which its used on. android:layout_gravity arranges the gravity of the View or Layout in its parent layout.


What is the difference between Android phones and windows phones?

Cost of software for hardware