ProAndroidDev

The latest posts from Android Professionals and Google Developer Experts.

Follow publication

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Published in ProAndroidDev

The latest posts from Android Professionals and Google Developer Experts.

Written by Hitesh Chopra

Android @ InMobi | ex-ShareChat | Kotlin | Compose | Ktor

Responses (5)

Write a response

Great article about the mystery hidden behind the ViewModel's Life Cycle.
However, there are a couple of statements significantly incorrect that are worth noting.
The first one:
The answer is no because NonConfigurationInstances is a static class. We…

--

Thanks for nice article. I've interested with it, you solved my question :)

--

Reading this whole analysis, One question has popped up in my mind. "How come the different instances of same activity launched in Standard launch mode comes up with different instances of the ViewModel?" If the NonConfigurationInstance stores…

--