Category "android"

How to get notifications click/open updates in RNFirebase

I am using RNfirebase to push notifications to my React native application. When the app is in background I am trying to send a notifications which is working f

Unable to build the android application with buildozer and kivy

This is my last hope of getting the fixed for the buildozer python issue. I already raised an issue in github for kivy. But there was no valid answer for it. I'

Custom view in layout doesn't show while using "match_parent"

I have a constraint layout that consists of two TextViews and a custom BoxBackgroundView. I want the box background to scale in size with the text, but when I u

Sources for android API 32 platform not found

It says sources for android API 32 platform not found and when I try to download it say all packages are not available for download how can I solve this pro

How to update a JSON array in a Java

I have a JSON file name abc.json Once I opened this file there is data like in square brackets. [{ "1" : "xxx", "20" : "ppp", "25" : "hhh" }] Here in this keys

Which android lifecycle methods are guaranteed to be called after a call to finish()?

I have an activity A with several execution branches that end with a call to finish(). Reading the documentation, my understanding is that this will result in

How to make item selectable in recycler view and use it?

I have followed android developer documents to create the recycler view. But now I would like to make the item selectable. Currently have created itemAdapter.kt

Using an annotation to Serialize Null in Moshi with nested Event

I am attempting to add a custom annotation to serialize specific values in my model to null when calling the toJSON method from Moshi. I have something working

Get contacts which have same phone number stored in phone number list in firestore

this is my first time trying Firestore. I have a collection named users, where every user is a UID and every user has fields (name, phone, and contacts (array))

Android Studio stuck at launcher after latest patch update

Android Studio is stuck at launcher after latest patch update. I got the patch update on latest Bumblebee and it is now stuck at the launcher only. Attached scr

The method '[]' can't be unconditionally invoked because the receiver can be 'null' what is the problem

I want to show the staff list in the Firebase database. However, I am getting the following error. import 'package:firebase_database/firebase_database.dart'; c

FirestorePagingAdapter crashes when scrolling in version 8.0.1

After updating FirebaseUi from implementation 'com.firebaseui:firebase-ui-firestore:8.0.0' to implementation 'com.firebaseui:firebase-ui-firestore:8.0.1' Firest

How to call a element from Layout without use findViewId() in Kotlin?

I didn't know this was possible, but I was following an example and I see this piece of code: import kotlinx.android.synthetic.main.activity_main.* class MainA

CameraX doesn't save the pictures

I'm trying to use the example app from google codelabs to implement the camerax application, but i dont know, why it doesnt save the pictures correctly. private

How does Firebase Authentication Android SDK persist the refresh token?

I was reading through the docs but I could not find how the SDK persists the refresh token on the device to be able to keep the user authenticated when the app

How to get Context in onViewCreated

I'm attempting to configure a RecyclerView adapter and I have a line of code val decorator = AppCompatResources.getDrawable(context, R.drawable.decorator) This

Many third party libraries not working with android studio bumblebee update

Recently I've updated my android studio to bumblebee. With this update, many of the libraries I've used in artic fox is not working. some of them is following:-

RecyclerView list shows 4 item only(have 200 items) and cant scroll the list

This is my Recycler View adapter class: public class CustomAdapter extends RecyclerView.Adapter<CustomAdapter.viewHolder> implements Filterable { Co

Room DB ANR Input dispatching timed out

I am doing a db get operation for my cart page which has multiple tables. I have mapper class which has all the relations with all the tables. I have used corou

Error building AAB - Flutter (Android) - Integrity check failed: java.security.NoSuchAlgorithmException: Algorithm HmacPBESHA256 not available

I am trying to build an AAB for my flutter app. I generated the keystore using the following below command: keytool -genkey -v -keystore ~/pc-keystore.jks -keya