Don’t Use Parcelable! Use This Instead…

<p>The other day I was trying to implement a certain functionality that involved passing data around my screens. As it was a tutorial, I followed the guy&rsquo;s advice in implementing Parcelable in my model class (Data Class when using Firebase) but it never worked. I thought it was because the code he was using to teach was deprecated by now but who knew this would be a learning moment for me?</p> <p><img alt="" src="https://miro.medium.com/v2/resize:fit:630/0*0sms7YYXl1ToRlrl" style="height:467px; width:700px" /></p> <p>Photo by Thought Catalog on Unsplash</p> <h1>Instead of Parcelable, Try This&hellip;</h1> <p>Whoa whoa whoa relax, Dear Reader. I certainly don&rsquo;t mean the &ldquo;this&quot; keyword in Android. What I mean is that there is a better way of passing data between screens in Android especially if you are using Jetpack Compose. What&rsquo;s better is that Google actually recommends the option I am about to suggest. I mean, they created the technologies used for Android Development (Mostly) so I&rsquo;d rather heed their advice.</p> <p><a href="https://medium.com/@emmanuelmuturia/dont-use-parcelable-use-this-instead-a31b5d3ead0f">Website</a></p>