Questions tagged [android-12]

For questions regarding programming in Android 12 (a.k.a., Android S), the primary 2021 version update for the Android OS.

563 questions
0
votes
0 answers

How to dismiss magnifier from edit text

on click of edit text in android 12 devices getting magnifier , how to dismiss this magnifier this is happening only in android 12 devices. screenshot
0
votes
0 answers

Can we RECOGNIZE_SPEECH to TEXT in HINDI in Android 12+ using KOTLIN

It is possible to recognize a Hindi speech and show text in the Hindi language using Speech Recognizer. I tried a below code but its always show in English (UK). Not Want to use any paid API for that launcherSpeech = …
0
votes
0 answers

android smsmanager lib not working with android 12

I made a simple app to send SMS with smsManager lib it's working fine with android 10 but when I'm use it on android 12 it's not send just stack into default app fun sendSMS(context: Context, phoneNumber: String, message: String) { try { …
0
votes
1 answer

NativeScript file.renameSync() fails on Android 12 with "Error: Failed to rename file..."

I have file system code that renames a file in the documents folder within a NativeScript JavaScript application. It's worked for years on both iOS and Android, but now fails consistently on Android 12. The code looks like this: const fs =…
David
  • 578
  • 3
  • 16
0
votes
0 answers

How to disable camera in android 12 AOSP?

I am trying to disable the camera on a custom android 12 ROM based on the state of another peripheral. I looked into the function setCameraDisabled(Component Name, Boolean) and tried to invoke it. It results in a security exception. How do we get…
0
votes
1 answer

flutter doesn't show icon image in splash screen android 12

I want to set a splash screen for android 12 in flutter I used flutter_native_splash package but it doesn't show my icon I added it to the pybspec.yaml file: dependencies: flutter: sdk: flutter # The following adds the Cupertino Icons font…
0
votes
1 answer

Error android:exported in Console GooglePlay - Android 12

I have this problem when i´m try send the archive .aab in console google play. I watch many videos, but i can´t resolve this problem. I did my project in Ionic and Cordova. erro in console googleplay In AndroidManifest, I set android:exported in …
0
votes
0 answers

Bluetooth paired failure: 'Need android.permission.BLUETOOTH_CONNECT permission for android.content.AttributionSource@11fa0bd1

I can't connect to the bluetooth in Android 12 devices. Its working fine with android 11 devices. I have added all the permissions. this is my AndroidManifest.xml file.
sanin
  • 3
  • 3
0
votes
1 answer

Where to extract downloaded System Image File of android to run in android emulator

I wanted to run android 12 in android studio emulator. When I started downloading the system image file from android studio, due to some network issues it failed many times. So I thought to download the system image file manually from this link…
0
votes
1 answer

Set OnUnhandledKeyEventListener on Android

Android 12 has issues with detecting inputs from a custom controller. So I want to custom map them. I want to detect key press, and I want to use OnUnhandledKeyEventListener, I have tried using different listeners like OnGenericMotionListener and…
Zenquiorra
  • 140
  • 1
  • 2
  • 13
0
votes
1 answer

Change Splash screen icon shape Android 12

I would like to use a decent size rectangle shape icon in android 12 splash screen, even though the icon I use is rectangle shape it is always displayed in a circle shape. I saw one question / answer here, How to change icon shape in Android 12…
imodeGowas
  • 35
  • 10
0
votes
1 answer

How to add pre-built "System App" in Android 12 AOSP

I was trying to add an AOSPHost.apk described here in AOSP android12.1.0_r24 as system application. I am building emulator with lunch argument sdk_car_arm64-userdebug. I have followed the procedure mentioned in the link, meaning: I put apk in…
0
votes
0 answers

Blocking all app's exits on Andorid 12, Java

I used in android 10 to use the OnUserLeaveHint() to block every way out of my app except the home button which retrieved the app after 5 seconds, but it seems it doesn't work anymore on Android 12. Is there any other way to block app's all exits…
Kali C
  • 23
  • 4
0
votes
0 answers

Samsung Android 12 App crash (Activity client record must not be null to execute transaction item)

Firebase Crashlytics show multiple instances where the app crashes on particularly Samsung devices running Android 12. Below is the observed crash : Fatal Exception: java.lang.IllegalArgumentException Activity client record must not be null to…
0
votes
0 answers

/system/bin/sh: test_file: inaccessible or not found in android(AOSP11/12)

I am working on ANdroid11/12. Tried below steps : Step 1 :Pushed test_file into /data/data/packagename/ Step 2 : executed below command device shell #/data/data/packagename/test_file #/system/bin/sh: test_file: inaccessible or not found How to run…
GNK
  • 1,036
  • 2
  • 10
  • 29