Category "android"

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

Is it possible to use the same api-key for all users of your app? Is it good to do?

I am creating a stock market simulator in flutter, which gets data from the fmp api. Can you use the same api key for all users or do I need to create a databas

Dynamic instruction trace for Android Apps

I want to generate the dynamic instruction trace of Android Apps (Just like for a basic hello world C program, I am able to generate the instruction trace using

Duplicate class com.google.android.a.a found in modules?

I tried adding Installreferrer to my app after adding it to gradle, when rebuilding the app. I'm getting this error. Duplicate class com.google.android.a.a foun

Android Kotlin: onTextChanged not being triggered for EditText

I am creating an EditText box with line numbers on the side. To achieve this, I have code in the onTextChanged method of the addTextChangedListener that updates

Display elements in the same place for all devices

I'm trying move items bottom middle, and I want that it was on bottom middle for all devices. And I need add text above and under my imagviews on middel. Sorry

Android activity loses data when switching between apps

I'm writing my first Android app. Essentially it shows and controls the score of a straight pool match. I've read articles about the lifecycle of an activity bu

How to open Accessibility Settings of my app programmatically?

As mentioned here I can open Android Accessibility Settings page; I know I can open my app Accessibility Settings directly with this code: Intent intent = new

Why in Flutter, PlatformView cannot shrink to its own size?

For example: child: Row( children: [ const Expanded(child: AndroidNativeView()), ElevatedButton( child: const Text("PLUS")) ], ) In layouts