I am trying to figure out if there is a way to programmatically determine the timestamp of when an Android device was setup, just like how it can be found in Fi
I have a Currency Converter Android app. I 'm using retrofit for getting rates from API but as far as I'm concerned my app can't get data from api and it return
I did an OnClickListenner on RecyclerView Item in the ViewHolder class Item = small card + big card like that init { itemView.setOnClickListener {
I'm having trouble understanding lambda. In particular, things like T.() -> R in the run() is more confusing. public inline fun <T, R> T.run(block: T.(
I am using bottom navigation and I have 3 main fragment in it (fragment 1, 2 and 3 in image) and there is some other fragments that I manage them in navigation
I'm trying to implement on my android application a calendar week view where I will show all the events in that week like a school schedule. After searching for
I am trying to access the dao instance of my room database which is being used to store names(This code I wrote just to get familiar to jetpack compose). I trie
In parameterized tests I use hint parameter to clarify test case naming. From the static analyzer point of view this parameter is never used, so this warning fr
I am trying to unescape UTF_8 characters like "\u00f6" to their UTF-8 representation. E.g. file contains "Aalk\u00f6rben" should become "Aalkörben". val tm
I have a map as follows val parentMap= mutableMapOf<String,String>() parentMap["key1"]="value1" parentMap["key2"]="value2" parentMap["key3"]
I've done my research on memory leak when using Data Binding. Every posts said that one should assign null to binding object to resolve this issue. However, it
package com.example.learning fun main(args: Array<String>) { var person = Person("Ramu", 51, 50000F, 7.5F) person.apply{ name = "Sam"
I am working on a inventory management system where it's required to write asset ids (with length of maximum 17) in to an RFID tag. First the problem was that w
My Code is really simple and it has nothing fancy logic in it. I am just taking a value and trying to set the value. This value is coming from the a LiveData ob
We have JVM (JDK 8) and used okhttp as client engine by developers. Each time we makes a request, a new instance of client is created and closed finally. During
I am developing an app using Flutter 2.10.3 but I assume this issue is not related to Flutter. Since upgrading to Android Studio Bumblebee | 2021.1.1 Patch 2 I
When I double click the same item or if I go to each composable screen very quickly i receive an error, How do I solve this problem? I tried changing few things
I have a recyclerview with check boxes and names, After checking the desirable checkboxes I want a list of them but the recyclerView recycles the items on scrol
I have a nested recycler view that contains parent and child adapters. I am using Room DB for showing data on the recycler view. When I, add or delete data from
I have 3 different Fragments to sign in. This is one of fragment to sign-in. @AndroidEntryPoint class SettingFragment : Fragment(){ lateinit var binding: Fragm