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
1 answer

ANR on mkdirs() and exists()

I'm pretty baffled by the ANR I'm getting from my application as I don't understand how it could happen. I've got mutliple ANR for these codes: File(applicationContext.filesDir).mkdirs() File(applicationContext.filesDir).exists() and I get the…
Biscuit
  • 4,840
  • 4
  • 26
  • 54
0
votes
1 answer

What Unique Hardware Identity Information Can Android 12 Apps Access to the Device

I'm wondering what information applications can obtain regarding the hardware ID. Which device-specific credentials such as Mac Address, Bluetooth Mac Address, IMEI are accessible to user applications.
0
votes
1 answer

Cannot execute pendingIntent in App Widget (Android12)

My widget is working and directly going to the activity I put below. But when it comes to my Android 12, when I click my widget on the home screen it only runs the default starting activity that can see from the android manifest. How can I fix this?…
0
votes
1 answer

How to solve SCAN_FAILED_APPLICATION_REGISTRATION_FAILED

I am trying to perform BLE scans in a foreground service (Android 12) after some start scan end stop scan I receive the error SCAN_FAILED_APPLICATION_REGISTRATION_FAILED, I cannot figure out what is the reason of the error. I do startScan and…
appersiano
  • 2,670
  • 22
  • 42
0
votes
2 answers

How to store a file in public directories

i know this question might have a simple response, but i can0t find anything that fits my case in the docs. What i'm trying to achieve is to store a file (E.G test.txt) in /download directory or any other dir that is public and visible by any…
Anon
  • 502
  • 5
  • 19
0
votes
0 answers

Is there any way in Android 12 to observe Camera and Mic toggle state to prevent stream blank frame or silent audio?

In Android 12 google introduced users can enable and disable camera and microphone access for all apps on the device by pressing a single toggle option. For more information visit here. As per documentation we can check which device support toggle…
Saurabh Bhandari
  • 2,438
  • 4
  • 26
  • 33
0
votes
1 answer

when 2 frame layouts are stacked, only the bottom layout is visible in Android 12 devices

I'm creating a video call app using DeepAR and Agora, I created a video call UI with framelayout (Local view) on top and another framelayout (remote view - full screen) at the bottom. On connecting the call, the top framelayout (local view) becomes…
codeP
  • 21
  • 6
0
votes
1 answer

Android >= 11 navigate between folder to find file without manage_external_storage permission

I have an app that have to update some machine firmware. Until targeting API 29 there are no problem, now Google Play Store need to target at least API30... and the struggle started. The file manager picker I've used is no more compatible…
Fenopiù
  • 87
  • 1
  • 1
  • 8
0
votes
1 answer

Xamarin: Issue when TargetSdkVersion set to API 31 in manifest

By refer to Xamarin.Android 12.0 Release Notes, I set TargetFramework to Android 12 and I able to deploy project without any problem. However, I encountered following error when I set android:targetSdkVersion to API 31 in android manifest. ADB0010:…
Wei Loon Wong
  • 450
  • 1
  • 7
  • 23
0
votes
3 answers

React Native Splash Screen on Android 12

I am using react-native-splash-screen library for making my custom splash screen in the app from an image on both iOS and Android. However, Google introduced the new splash screens approach in Android 12, which causes problems such as splash screen…
Anton Liannoi
  • 543
  • 5
  • 13
0
votes
2 answers

Manifest merger failed in push notification

I use native push notification in react and getting this error: Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Error: Command failed: gradlew.bat…
0
votes
1 answer

Cordova - Trying to control new splash screen for Android 12

I'm a Cordova user and not an Android expert! I've seen answers to this question that presume a lot of Android knowledge and changing Java code. I'm trying to control the new splash screen introduced in Android 12. I want to change the default…
Jon Schlossberg
  • 329
  • 2
  • 11
0
votes
1 answer

Flutter : firebasemessaging.FlutterFirebaseMessagingService: Targeting S+ (version 31 and above) requires that an explicit value

I want run a existing project. It's fully run on under Android 12 but when I going to run a samsung phone which version is Android 12. Then I get this type of error. Error : ✓ Built build/app/outputs/flutter-apk/app-release.apk…
Abir Ahsan
  • 2,649
  • 29
  • 51
0
votes
1 answer

Notification trampoline restriction - open activity in lock screen without unlocking

Similar questions 1 Similar question 2 TL;DR: Answers to How to perform notification-action (click) on lock-screen? don't work anymore cuz now you can't startActivity() from services or broadcast receivers. Any suggestions on how to achieve…
0
votes
1 answer

react native deep links android 12

React native deep links keep failing on android version 12, anybody has some help? On older versions it works fine, so the config must be fine and I checked probably 100 times the react native documentation.
Fapi
  • 323
  • 2
  • 15