Category "android-studio"

Android Studio - blank white screen when running Ionic App on an emulator

I'm working on an Ionic App. It's running fine both in iOS emulator (via Xcode) and via ionic serve, but when trying to run it on an android emulator in Android

how in GridLayout (Android) to fit the last two blocks to full width?

I am currently learning the Android front-end development, and our teacher gave us this task: We need to create the next grid in Android Studio: Task Grid using

setOnClickListener is not showing the Toast or doing the Intent

this is in Kotlin, it doesn't seem to work no matter what I try it's just a button with a click listener. Its function is to take me to another activity, I trie

Android Studio - PocketModeLiteSensor Error

I have a problem that I've already described on StackOverflow but still can't solve - Suddenly LogCat stopped working for me - I have no idea why! As soon as I

Can't click on stack trace links in Android Studio anymore

After a recent update for Flutter I found that in Android Studio the package links in stack traces are no longer clickable. This is not the case with Visual Stu

Image View doesn't match parent's rounded cornered background

<FrameLayout android:id="@+id/flTodayTraining" android:layout_width="match_parent" android:layout

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