Category "android"

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

How to show large icon in notification

There is a small icon and a large icon in the attached image of a notification. I would like to create a similar notification. I am able to set the small icon

Gradle 7 and jitpack.io runs into error during publish

When I upgrade in an Android project to Gradle 7.0 and want to publish aar library in jitpack.io I run into Script '/script/maven-plugin.gradle' line: 2 * What

How to create drawable/bitmap with a nested image which has one corner out of the circle background?

I need to create smth like below. Image should be nested inside the circle background and one of the corners should be out of this circle "pocket". I think we n

Send Git commit message to slack channel after successful build in Jenkins

I have setup Jenkins for CI/CD. I am able to make successful build using git. After build is successful I upload the artifact to dropbox and once that is comple

Error inflating Class Fragment in Recyclerview with Navigation Activity

I'm making an app that uses Android studio to write and call messages. This error message appears during the process of inflating the recycler view into the fra

Some Androids requires manually sending RATS and adding block numbers in transceive() for NfcA tags (ISO 14443-4A)

When reading NfcA tags, I found that some Android models (e.g. Samsung S8) requires me to explicitly send out RATS before SELECT and to send any I-blocks, the b

Jetpack Compose LazyVerticalGrid items having a different size

When I'm trying to use LazyVerticalGrid to display a list of images, some grid items have a different size even the images itself have exactly same size 240x178

Dynamically replace url's with custom text hyperlink url in Android TextView

Let’s say you have the string: "https://google.com to go to google. https://amazon.com to go to Amazon." In a TextView, how would you replace the url&rsqu

CPU, RAM stress android

I have a task to compare the performance of Java and Kotlin programs. I would like to measure CPU memory and RAM usage. I read somewhere that a good idea for CP

Flutter SafeArea: avoid notches, but ignore rounded corners

Is there a way to detect and avoid notches in a phone's screen (for example, the camera notch in an iPhone X), but ignore a screen's rounded corners? For exampl

Firebase notifications on ios - React native

I'm trying to get push notifications running with React Native on iOS and Android. To do so I am using firebase, as that seemed to be very convenient. On Androi

The spinner is empty when no new object is being generated for an ArrayAdapter

To assign data of an ArrayList<String> alKategorien to a spinner auswahl_kategorie, I am using this snippet: ad = new ArrayAdapter( this,