I need a Factory to support Viewmodel WITH ARGUMENTS. I tried to implement the class which is commended "AbstractSavedStateViewModelFactory". I applied the trou
There is a way to monitor reading access to contacts? I tried this experiment: I developed an application that reads contacts subsequentially i ran it. After th
Often when we download something use the terminal or the command prompt, we get a progress like this: ----------10% after a while ----------------------------
I'm trying to add some elevation or shadow just in the bottom of an element. For this element I'm using a Tab composable. How can I add this elevation/shadow ju
I made a simple analog of the account manager for iOS using Apple Keychain: @Serializable data class Account( val name: String, val password: String,
I have a problem with ArrayList. I have 2 ArrayList and they are dependent. class MainActivity : AppCompatActivity() { var arrayList1 = arrayListOf<Stri
I have a collection in my Firestore Database with posts. Each post has some comments as a document in the collection comments in the main post document (screens
I am trying to get the pass the current user data into the this adapter class. However, I failed to use the getStringExtra() where it keep mentions that the get
I'm wondering if it's possible to get the pixels of an item of a recyclerView, let's say I have an horizontal recyclerView and all the items are the same size (
On Main activity XML I have one buttom nav and on another fragment I have a floating button. This button is not visible because of the buttom nav. If I add on f
I am trying to add unit tests to an existing Android app that has some JNI libraries (only for ARM). I am using Mockk and Junit4, and I have the following: This
I know that we can pass a class in a param which has a particular class as its super. For example, see this: public void sampleMethod(Class<? super MyParentC
This is very tricky for me because I don't know if it can be done with a SQLite query or by recursively calling some function. It gets complicated because I als
I have a spinner, and I want to find a way to change the dropdown for my spinner. I want to change my text content through code, but I'm not sure how to do that
So I created MVVM app in kotlin to fetch movies from TMDB api, using injections and coroutines. My problem is that I cannot copy the list of returned movies int
In my application I want flatMap operators such as flatMapMerge. But after write codes show me highlight on flatMapMerge and say add one annotation!I write belo
I'm having a issue uploading a file to Google Drive. W/System.err: java.io.FileNotFoundException: /storage/emulated/0/Android/data/dev/files/backup/https:/i.pic
I want to place text at the bottom of a card and blur the text area with a translucent color. This is what I have so far. The design I am trying to achieve is t
Here I am Trying to Display "users" into Recycleview and I need to Get Data Into List databaseReference?.addValueEventListener(object : ValueEventListener {
PREVIEW i have been trying to create this kind of viewpager animation couldn't grasp how the animation works and always mess up. Would be really helpful if som