Sign Up

Sign In

Forget Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask question.

Discy Latest Questions

  • 0

Trying to build a sample using Android Studio 3 Canary 5 with Architecture Components and Kotlin gives this warning. Can anyone tell me the reason? Thanks, Ove Edit #1: This is a sample made some time ago by Dan Lew https://github.com/dlew/android-architecture-counter-sample build.gradle: apply plugin: 'com.android.application' apply ...

  • 0

Error:Not sure how to convert a Cursor to this method's return type Error:Execution failed for task ':app:compileDebugJavaWithJavac'. Compilation failed; see the compiler error output for details. Using Room I’m getting this error and I’d like to find out which method causes it. I have multiple DAOs, with ...

  • 0

I have an activity A that start activity B passing to it some intent data. Activity B host a navigation graph from the new Navigation Architecture Component.I want to pass that intent data to the startDestination fragment as argument how ...

  • 0

According to LiveData documentation: The LiveData class provides the following advantages: … Always up to date data: If a Lifecycle starts again (like an activity going back to started state from the back stack) it receives the latest location data (if it didn’t already). But ...

  • 0

Edit: This question is a bit out of date now that Google has given us the ability to scope ViewModel to navigation graphs. The better approach (rather than trying to clear activity-scoped models) would be to create specific navigation graphs for the right ...

  • 0

In recent Android Architecture Components library released by Google, we have two static functions in the Transformations class. While the map function is straight forward and easily understandable, I am finding it hard to properly understand the switchMap function. The official documentation of switchMap can be found

  • 0

How can I represent a many to many relation with Room? e.g. I have “Guest” and “Reservation”. Reservation can have many Guest and a Guest can be part of many Reservations. Here is my entity definitions: @Entity data class Reservation( ...

  • 0

My understanding on LiveData is that, it will trigger observer on the current state change of data, and not a series of history state change of data. Currently, I have a MainFragment, which perform Room write operation, to change non-trashed data, to trashed data. I also another TrashFragment, which observes ...

  • 0

On Last Google IO, Google released a preview of some new arch components, one of which, ViewModel. In the docs google shows one of the possible uses for this component: It is very common that two or more fragments in an activity need ...

close