Category "android-studio"

Gradle build sync failed. Basic functionality (e.g. Editing Debugging) will not work properly

Error screenShot `plugins { id 'com.android.application' } android { compileSdk 31 defaultConfig { applicationId "com.example.helloworld" minSdk 16

Android- studio error - Cause: unable to find valid certification path to requested target

I got this error on Android Studio while attempting to sync gradle. Cause: unable to find valid certification path to requested target What I have attempted so

different between call view by name or use binding in android

i'am a newest in android kotlin I want to know what is the difference between the two lines of code below and which one is better to use class MainActivity : Ap

How to implement a OnItemSelectedListener for Spinner in Dialog Box

I have a Dialog Box in my MainActivity that is activated by touching a cog button in my Layout. When it appears, it contains a drop down Spinner. The Spinner wo

Is there a way to make a button to loop user inputs for a number of times before terminating?

I have been turning the popular guessing game into an app using Java in Android Studio. I want it so that a user can make up to five trials before the answer is

Using Coroutine for continuous data polling and dumping to UI

My existing Android code uses AsyncTask to continuously poll data from a virtual COM port and dumps data to UI thread by overriding the onProgressUpdate() funct

Android Studio stuck 'Connecting to emulator'

I recently updated Android studio, and as usual, it broke. Whenever I try to launch an emulator, Android Studio gets stuck in the 'Connecting to emulator' scree

Get multiple times current time on single Button

I have a button showing text START when I click on it I shows me current time in textview.(I consider this time as start time). Than convert the text on Button

Deprecation warning in gradle in Android Studio in Flutter project

I have created a Flutter project in Android Studio (Bumblebee | 2021.1.1 Patch 3). When I open the android folder in a seperate window, when the gradle syncing

Navigation Drawer Custom Action bar [ Icon ] problem?

My custom navigation drawer is working properly but as mentioned in the solved answer but I am confused about this line of code Problem ! Press the back button

android emulator disable microphone when launching device

How do we disable the (virtual) microphone when launching the emulator? Situation When launching an Android Studio stock emulator device, the microphone is alwa

Why am I having less options in Palette in Android Studio?

I am using Android Studio (Bumblebee - 2021.1.1). Unlike other YouTubers having many options in Palette, I am having only a few options. Do I need to download a

How to auto-close app open ads after splash

I placed an ad of the type: "app-open" admob. This advertisement is not accepted by the App Store except in one case: That there is a splash for the application

Why is android studio not allowing me to select a locale region?

I want to use resource qualifiers to create a locale specific strings.xml file for English (United States) but when in the "New Resource File" window, if I sele

Combining Two Flows and add them to temporary list of StateFlow(Hot Flows)

I m getting data from two End points using flows and assigning those two list to temporary list in ViewModel. For this purpose, I'm using combine function and r

I am using viewpager2 inside a recyclerview but the images are not outputting. Why?

No matter what I do the pictures are not showing up. Even if I set the items to match parent, I still have the same problem, I've been dealing with it since the

Is there a way of displaying 2 input for QR code in android

So I’m creating an android app for queuing and it uses a QR code for reference and when scanned should display date and time of the chosen schedule but my

How to separate large numbers with spaces kotlin

I have a calculator app and I want it to show large numbers with spaces between them when users enter their input. Currently, they don't have spaces between the

Failed to start several time. Restore it by clearing its history. Android Project

I have no idea what causing the error in my android project. The error "Failed to start several time. Restore it by clearing its history." happen in some of the

Firebase Assistant missing in Android studio's Tools tab

So I'm building an application with android studio and I am having problems connecting to Firebase. This means that Firebase assistant is not in Tools. Now, a