android – Can someone tell me what is wrong “signInResult:failed code=10”?

Can someone tell me what is wrong?I got this code from the Firebase Documentation and it didn’t work: when I click on the Google sign-in button it shows to me my accounts and then when I choose one of them nothing happens and it shows on the log.LOG:signInResult:failed code=10 I tried many times to … Read more

A Love Letter to Android. How and why I fell in love with Android… | by Zachary Allegretti | Jun, 2022

How and why I fell in love with Android development Photo by author I remember unboxing my first smartphone when I was 16 years old. I left the AT&T store with a white Samsung Galaxy S3. The experience of unboxing and setting up a smartphone for the first time was magical to my teenage self. … Read more

android – Issue with calling setContentView(R.layout.activity_main) on some devices

I recently encountered an issue with running my application (monitoring kid’s phone location) on some Android device. It works well on the following devices: MI 5 SPlus (Android 8), Red Mi Note 3 Pro (Android 10), MI POCO X3(Android 10), Sony Xperia L (Android 4.4.2). And when I tried to run that application on Samsung … Read more

android – How to hide or NOT SHOW items in a Room Database based on a Boolean

I have a Todo Application and I want to hide (which basically means not showing) the tasks based on its completed status(strikeThrough over the text). However, the hideCompleted tasks implementation I followed isn’t working but the sort and search is working and I said this because I put all the Implementations in a single query … Read more

android – Insert a RecyclerView inside another RecyclerView

This implementation is horizontal grid recycler view inside a vertical Liner recycler view Activity class RecyclerGridActivity : AppCompatActivity() { private lateinit var listAdapter: RecyclerCustomListAdapter override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_recycler_grid) val recyclerListView = findViewById<RecyclerView>( listAdapter = RecyclerCustomListAdapter() recyclerListView.layoutManager = LinearLayoutManager(this@RecyclerGridActivity) recyclerListView.adapter = listAdapter recyclerListView.addItemDecoration(TopSpacingItemDecoration(10)) listAdapter.setContent(arrayOf(1,2,3,4), Example.shared.getData(), WeakReference(this)) } } It’s layout <?xml version=”1.0″ encoding=”utf-8″?> … Read more

kotlin – Непонятная ошибка при запуске Android приложения

Я использую обычные фрагменты для навигации. Приложение было протестировано на своем устройстве (Honor 30i), на Самсунге A02 и эмуляторе Pixel 4, но после установки у пользователей возникает следующий краш в Crashlytics : Fatal Exception: android.content.res.Resources$NotFoundException Unable to find resource ID #0xffffffff android.content.res.ResourcesImpl.getResourceTypeName ( android.content.res.Resources.getResourceTypeName ( ($AnimationInfo.getAnimation ( ( ( ( … Read more

android – Trying To Fix The Code That Cannot Make the WebView Fullscreen

package com.example.digitialin; import android.annotation.SuppressLint; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.webkit.WebChromeClient; import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient; import android.widget.FrameLayout; import; /** * A simple {@link Fragment} subclass. * Use the {@link HistoryFragment#newInstance} factory method to * create an instance of this fragment. */ public class HistoryFragment extends Fragment { private View … Read more

android – Jetpack Compose Navigation: How to handle backstack in multi-graph app?

I have two graphs in my app. One is AuthNavGraph which contains auth-related screens like login and signup, and the other is MainNavGraphwhich contains BottomNavigationViewwith top-level destinations. Here are my destinations : interface RubiBrandsNavigationDestination { val route: String } sealed class Destination( override val route: String, val arguments: List<NamedNavArgument> = emptyList() ) : RubiBrandsNavigationDestination { … Read more