Top "Android-jetpack" questions

Android Jetpack is a Google's set of libraries, tools and architectural guidance to build Android apps and provides common infrastructure code.

What is AndroidX?

I am reading about a room library of Android. I see they changed package android to androidx. I did not …

android android-architecture-components android-jetpack androidx
Can I use library that used android support with Androidx projects.

I know, androidx and support dependency causing multidex error We can not use androidx and android support at a same …

android android-jetpack
Handling back button in Android Navigation Component

I'd like to know how properly handle system back button action using Navigation Controller. In my app I have two …

android navigation fragment android-jetpack
Android Navigation Architecture Component - Get current visible fragment

Before trying the Navigation component I used to manually do fragment transactions and used the fragment tag in order to …

android android-navigation android-jetpack
How to change start destination of a navigation graph programmatically [Jetpack]

Basically, I have the following navigation graph: I want to change my starting point in navigation graph to fragment 2 right …

android android-jetpack android-navigation android-architecture-navigation
Navigation Architecture Component - Dialog Fragments

Is it possible to use the new Navigation Architecture Component with DialogFragment? Do I have to create a custom Navigator? …

android android-architecture-components android-jetpack android-architecture-navigation
Android. Is WorkManager running when app is closed?

I want to schedule nightly database updates. So I use new Android WorkManager. My understanding is that once scheduled it …

android android-service android-jetpack android-workmanager
Navigation Component: Cannot find NavController

I am using Navigation Component for navigating in my app. It works fine inside fragments but it fails to find …

android navigation android-jetpack
Manually clearing an Android ViewModel?

Edit: This question is a bit out of date now that Google has given us the ability to scope ViewModel …

android android-architecture-components android-jetpack android-viewmodel
how to get viewModel by viewModels? (fragment-ktx)

I am working with Single viewModel for the Activity and all of it's fragment. So to initialise viewmodel if have …

android androidx android-jetpack kotlin-android-extensions android-viewmodel