---
title: "Mastering Android ViewModels: Essential Dos and Don’ts Part 1 🛠️"
url: https://daily.dev/posts/mastering-android-viewmodels-essential-dos-and-don-ts-part-1--m9dkgsoka
source_url: https://proandroiddev.com/mastering-android-viewmodels-essential-dos-and-donts-part-1-%EF%B8%8F-bdf05287bca9
type: article
source: "ProAndroidDev"
published: 2024-03-17T12:37:34.797Z
updated: 2024-05-09T08:20:02.615Z
tags: ["android", "reactive-programming"]
reading_time: 3
upvotes: 13
comments: 1
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Mastering Android ViewModels: Essential Dos and Don’ts Part 1 🛠️

**[ProAndroidDev](https://daily.dev/sources/pand)** · 3 min read · 13 upvotes · 1 comments

## Summary

This post provides dos and don'ts for mastering Android ViewModels, including avoiding initializing state in the init block, using reactive programming, lazy dependency injection, and more.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://proandroiddev.com/mastering-android-viewmodels-essential-dos-and-donts-part-1-%EF%B8%8F-bdf05287bca9>

## Community discussion

Top comments from developers on daily.dev.

**@priankusharma** · 0 upvotes

> Sure, I can help you with that. Do you have any specific features or requirements in mind for the food home delivery mobile app?

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#android](https://daily.dev/tags/android), [#reactive-programming](https://daily.dev/tags/reactive-programming)

[View this post on daily.dev](https://daily.dev/posts/mastering-android-viewmodels-essential-dos-and-don-ts-part-1--m9dkgsoka)
