Category "android"

Android Studio SDKmanager Error: Could not find or load main class

Currently I am trying to set up my Android Studio environment for Flutter and I am unable to update sdkmanager or else I would obtain the following errors : Th

Flutter Alarm Manager Missing Plugin Exception

I'm having trouble setting up a daily task to complete certain functions. I've managed to get android_alarm_manager to work, I currently, have it set to print a

How to disable copy/paste/cut in a TextField Jetpack Compose?

I'm trying to find a simple solution on how to disable copy/paste/cut in a TextField. I did come across a couple of question but no answer.

take picture just in Android 12 the result code is zero

I try to take the picture Uri in the onActivityResult() and i'm get resultCode == 0 only on Android 12. on all the other devices I tested it works fine. this is

Failed to resolve library after upgrading the build version to 7.0

I have upgraded the my exiting project Gradle version from older version to "com.android.tools.build:gradle:7.0.4". After upgrading the build version some of th

MQTT android studio connection failed

I am trying to create an android application to send mqtt messages to a broker mosquitto. Here's what I did: build.gradle app : implementation 'org.eclipse.p

Filtering array list

I have a class which I want to use, to filter my array according to driver. Driver is hardcoded just to try and eliminate possibilities of why the code is not w

androidx.room.RoomOpenHelper.e (RoomOpenHelper.java:15)

I'm getting this error in Crashlytics (Firebase). The app is built in Flutter and I'm not sure about this error that I don't get locally: Fatal Exception: java.

Android MediaSession: How to choose the icons shown on lock screen?

I have an app that plays media via MediaSessionCompat. I create a notification for the Notification Drawer using NotificationCompat and post it using Notificati

flutter video_player Not playing the video in release mode

i use video_palyer : ^2.1.0 the video playing normaly in debug mode but whene i run release apk the video not playing UPDATE the problem from flutter_facebook_a

How to resolve hint character wrapping on autosizing TextView with empty text on android?

I want to use autosizing TextView for dynamic text content. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android

ViewPager2 dependency confusion

I was about to try ViewPager2 but I don't understand when I saw someone add the following dependency declaration in their gradle file: implementation 'androidx.

Compose-Navigation: Remove previous composable from stack before navigating

I'm using compose-navigation(alpha09) to handle the navigation between composables I want to remove the Splash screen when moving to the next destination (I don

Json file was not found in Android

I am developing a game for mobile and can't create a normal save system because when playing on the phone the error is logged: Could not find the file. I use th

How to put ImageView on top of CardView in ConstraintLayout

I want to create a layout like this, but I don't know how to place the CardView background under the ImageView and then set TextView below the image. The image

How to install any Android app programmatically in Android 10

In Android 9 & 10 I face issued in install app programmatically in Android Studio using filepath apk file. Below show what I tried.. Intent intent = new I

Completable.create of RXJava equivalent in Kotlin Coroutines- Android

I am working on Firebase authentication wherein I need to put the firebase auth on my Repository. I found this article on how to do it but it uses RxJava. (http

Android CheckBox gets filled in with solid color when setting button attribute

rather simple situation. I have a checkbox, I set the button attribute to my selector with two drawables for checked and unchecked. It looks proper in the edito

Android Studio cannot find my device ! (Initializing ADB)

I'm struggling to connect my device(Galaxy S10) in Android Studio. I used several methods to solve this problem, but it didn't work. [Methods that I tried] -

Unity Build - Exception: il2cpp.exe did not run properly

Using Unity 2017.4.34f1 (LTS) with IL2CPP with NDK r13b, I try to export my Unity Project to Android Project (Build Process). Note: I'm using IL2CPP because Goo