Android - Key Dispatching Timed Out

In my Android application I am getting a very strange crash, when I press a button (Image) on my UI the entire application freezes and after a couple of seconds I getthe dreaded force close dialog...

How to create file directories and folders in Android data/data/project filesystem

I am working on a video editor program and am fairly new to android and java. What I would like to happen is when the user presses "create new project" button, a dialog pops up asking the user for...

How can I use speech recognition without the annoying dialog in android phones

Is this possible without modify the android APIs? I've found a article about this. There's one a comment that I should do modifications to the android APIs. But it didn't say how to do the...

Alert dialog is not displaying

Hi all I am creating an alert dialog in android by clicking a button. I used onClick property of XML and calling function. My code is public void selectPhoneType(View view) { String [] item =...

How to get current location in Android

I'm having troubles of getting my current position coordinates using the NETWORK provider of android location system. Already read a lot of tutorials and implemented 4 or 5 existing classes to my...

You need to use a Theme.AppCompat theme (or descendant) with this activity

Android Studio 0.4.5 Android documentation for creating custom dialog boxes: http://developer.android.com/guide/topics/ui/dialogs.html If you want a custom dialog, you can instead display an...

ADB Android Device Unauthorized

Since I reinstalled Eclipse (simply deleted and downloaded it again) I can't debug my applications on Samsung Galaxy i9001 (with CyanogenMod - Android 4.4.2). It worked fine before...

How can I change default dialog button text color in android 5

I have many alert dialogs in my app. It is a default layout but I am adding positive and negative buttons to the dialog. So the buttons get the default text color of Android 5 (green). I tried to...

Git - Android Studio no longer lets me commit changes and push to GitHub

As of a couple of hours ago, Android Studio no longer lets me commit my changes. When the Commit dialog pops up, it shows the files that have changed and lets me enter a commit message. However,...

How do I "select Android SDK" in Android Studio?

After a successful import of an Eclipse-Android-Project into "Android Studio 1.4", I get the error "Please select Android SDK" when I click on the button to run the application in simulator, but...

Android make Dialog fullscreen with status bar showing

I want to make a dialog box with full screen but not hiding the status bar. If use style Theme_Light_NoTitleBar_Fullscreen, the dialog box occupies the whole screen. If use style...

onRequestPermissionsResult returns immediately with denied permission

My Android app needs to request permission for location services. I do this with: ActivityCompat.requestPermissions(this, new String[]{ ...

Android testing: Waited for the root of the view hierarchy to have window focus

In Android Ui testing, I want to click on a spinner item in a dialog, but it pop up with this error: va.lang.RuntimeException: Waited for the root of the view hierarchy to have window focus and...

Android null object reference on ProgressBar in dialog

I have the following code where I create a ProgressBar in a dialog: final Dialog dialog = new Dialog(context); dialog.setContentView(R.layout.wait_for_response_dialog); final ProgressBar bar =...

RadioGroup.setOnCheckedChangeListener is not working and returning null?

My name is Amaya, and I'm new in java and Android Studio. I'm building an expert system for my final class project, but I get stuck because my RadioButton or RadioGroups (to be honest, I didn't...

:app:kaptDevDebugKotlin FAILED Build exception: cannot find symbol DataBindingComponent

I've been trying to solve this annoying issue for way too long without any progress. Our application has most classes written in Kotlin, and we are using databinding as well: apply plugin:...

Android BiometricPrompt.Builder.authenticate() not showing any dialog

This is my code to show the prompt for fingerprint authentication in Android P: private void displayBiometricPrompt() { DialogInterface.OnClickListener onClickListener = new...

SQLiteConstraintException:NOT NULL constraints android

I have a an Editor Activity where i insert my data in the database. I've created 3 columns as :- ID INTEGER, Task TEXT NOT NULL and Days TEXT. I insert data into the Task column with data from...

How to Enable Internal App Sharing for Android?

I have uploaded the Android App Bundle in Play console for Alpha testing but when I open the testing URL it is showing below dialog.

Error with GIT_ASKPASS_TOKEN when trying to clone git repository in Android Studio

I try to checkout a repository from Android Studio 3.4.2 (Git 2.22). In the Clone Repository dialog I provided the correct URL and pressed the "Test" button. The result is an error "Illegal value...

React Native DuplicateError: Duplicated files or mocks

After updating xCode I am facing the below error from a week. I am not able to run app on device. I dont think the issue is with xcode because even if I try to run on android device the same issue...

CocoaPods could not find compatible versions for pod "React/Core"

when I start pod install the result : [!] CocoaPods could not find compatible versions for pod "React/Core": In Podfile: react-native-fetch-blob (from...

Android - Google Play Billing Library error in production

I have an Android app released on the Google Play Store, and last week I released a new update, just to fix some small issues. Starting with the day when I added the updated version on the Play...

Android Emulator "Allow USB Debugging" dialog close right after showing

I'm trying to debug with Android R in Pixel emulated devices w/ PlayServices but the "Allow USB Debugging" dialog instantly close right after showing, so I can't click in "Allow" to AS connect to...

Do you want to terminate the process 'app' - Android Studio

Today, I update my Android Studio(4.1.1) When I changes in my code and click on "Run App" then dialog shows Do you want to terminate the process 'app' and there are 3 options Terminate,...

implementing the com.amulyakhare library in android studio

Hello i am trying to import a library called amulyakhare from github into my android studio project but i keep getting the following error after syncing: Failed to resolve:...

CompanionDeviceManager without using an intent chooser and scanning

I already have mac addresses of the Bluetooth device that I need to connect to. I do not wish to ask for any location permission. when my app is launched I need to scan and connect to the...

Why is my RecyclerVIewSwipeDecorator library not getting imported?

I am trying to implement the following library on my application: https://github.com/xabaras/RecyclerViewSwipeDecorator I have synced it in gradle, but I am unable to import it for use. Here's my...

Permissions Dialog not showing in Android 11

In my app I need access to 4 permissions (which are already declared in the manifest) <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission...

Room kapt error when upgrading kotlin or gradle

I have been having for a long time this problem: I cannot upgraded the gradle version and kotlin gradle plugin in my app in Android Studio, the only solution that I can think of is to start a...