Skip to content
  • android
  • Flutter
  • Kotlin
  • Firebase
  • Laravel
Droidmonk
Learn Android with Java and Kotlin
 
  • android
  • Flutter
  • Kotlin
  • Firebase
  • Laravel
Home Archive for category "jetpack"

Category: jetpack

android, jetpack

How to create a ViewModel for an Activity/Fragment

In this tutorial we are going to create a simple app to display the list of apps installed on a device . We’ll also have the option to filter the list to display only the apps installed by the user or only the system apps .   You may also like …

Continue reading"How to create a ViewModel for an Activity/Fragment"
android, jetpack

The problem that ViewModel solves

Let me start with the truth – “ViewModel is a choice , not a compulsion” . You can use any architecture that works for you , and probably you have one ( if you don’t then please have one as bloating your UI components is the worst practice ) . …

Continue reading"The problem that ViewModel solves"
android, jetpack

Leaking memory from ViewModel

In this post we are going to explore some of the problems that can be solved by using LiveData .  A ViewModel must never reference a view, Lifecycle, or any class that may hold a reference to the activity context.  A ViewModel lives longer than an Activity or a Fragment …

Continue reading"Leaking memory from ViewModel"




Recent Posts

  • Middleware to verify ownership
  • Password reset
  • Email Verification
  • Delete a product ad
  • Edit a product ad

Categories

  • android
  • Basics
  • Firebase
  • Flutter
  • jetpack
  • Kotlin
  • Laravel
  • Login
  • Uncategorized
Back to Top
©droidmonk.com
Powered by Fluida & WordPress.