For questions regarding programming in Android 12 (a.k.a., Android S), the primary 2021 version update for the Android OS.
Questions tagged [android-12]
563 questions
0
votes
0 answers
Adding reply action to notifications for Android 12
Trying to add reply action to the notifications
But no matter what I make, still gives me this error:
PendingIntents attached to actions with remote inputs must be mutable
app/build.gradle:
android {
compileSdkVersion 33
ndkVersion…

Khader Murtaja
- 425
- 1
- 5
- 15
0
votes
1 answer
Settings key unreadable on target SDK 32
after migrating the codebase to android 12 target SDK 32, i am trying to get the value of the below settings key
bluetooth_name
but on pixel devices on android 12 i keep getting this crash
Fatal Exception: java.lang.RuntimeException:…

Mahmoud Omara
- 533
- 6
- 22
0
votes
2 answers
How can I find flutter packages is not support android?
My flutter project can build and install in android 11 device,but cannot install in android 12.
I was fix my androidManifest.xml,
this is my androidManifest.xml,android:exported="true"

許子霆
- 11
- 2
0
votes
1 answer
[Android]context.startActvity(intent) throwing ActivityNotFoundException
My use case is to switch from App1 to App2 . In App1, I use the packageManager.getPackageInfo() API to check whether the App2 is present or not.
When it returns true, I set the intent with intent.setPackage(App2) and trigger the…
0
votes
0 answers
My Maui Android 12 application cannot access my application/files folder?
I created a .net m.a.u.i for android 10 emulator and create files and images in root_Dir/files
root_Dir = Android.App.Application.Context.GetExternalFilesDir(null)?.AbsolutePath;
=> /storage/emulated/0/Android/data/jmd.TakeCopyPhotos/files
(The…

jmdess
- 53
- 2
- 8
0
votes
1 answer
Some packages not visible even after adding tag to AndroidManifest.xml (Android 12 device)
I have implemented some code in my app in order to get a list of accessibility services installed on my device using AccessibilityManager.getInstalledAccessibilityServiceList. Since devices running Android 11 and above are subjected to package…

huthut28
- 71
- 5
0
votes
2 answers
Application Crash on Android 12
Gredle file
compileSdkVersion 32
defaultConfig {
applicationId "com"
minSdkVersion 21
targetSdkVersion 30
versionCode 165
versionName "7.0.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
buildTypes…

Rohit Barge
- 35
- 7
0
votes
1 answer
Android 12 ACCESS_FINE_LOCATION returned as PERMISSION_DENIED even though it's GRANTED
On Android 12 devices (API 31),
User has GRANTED both the precise and approximate permissions and app is working fine post that.
When user turns off the device location by going into settings, I see the ACCESS_FINE_LOCATION permission as NOT…

Amrut
- 2,655
- 3
- 24
- 44
0
votes
1 answer
Android 12: can't create new folder in downloads when app is uploaded to Google Play
When code bellow as a part of application is executed locally (directly started from Android Studio) it works correct.
String folderName = Environment.DIRECTORY_DOWNLOADS;
File folder = new…

tomazj
- 303
- 3
- 13
0
votes
0 answers
Get location from image in Android 12
I want to fetch location from image. I have used ExifInterface. It's working in Android 9 but not working in Android 12. I have pixel 4A with Android 12. I have added access_media_location permission as well.
boolean hasLatLong = false;
…

Krutika Chotara
- 143
- 11
0
votes
1 answer
How do I create a root launcher Activity in an app, when onCreate() is not called on Android 12, API 31?
I want to create an Android app which has a specific Activity that acts as a 'Root Launcher Activity', to sometimes launch other Activities in the app. When this Root Launcher Activity starts, it will check a preference to see if it can directly…

Mr-IDE
- 7,051
- 1
- 53
- 59
0
votes
1 answer
Is it possible to add custom functionality to the android 12 side keys?
Android 12 (and possibly older versions) has this 'side keys' system where if you hold both volume down and power, it opens a certain screen, which is configurable in my case to opening Bixby (the samsung assistant) or the power menu…

Sven pegels
- 65
- 4
0
votes
1 answer
How to fix VMs no longer working on Android 12
After the Android 12, VM apss such as VMOS no longer work, sorry if this the wrong place for asking this question but I can't find any answer to that, and it's obviously not happening to me only, beacuse every new review for these apps is "not…

ipobujatel
- 5
- 1
- 3
0
votes
0 answers
Android 12 Restrict My interactions with my app's activities
Recently I have Noticed Some other apps interact my splash activity with out permission
I used android:exported="false" but my app can't start by android system
I want to restrict this activity to be accessible only to android system
Thanks

KIM JONG YUNG
- 35
- 5
0
votes
0 answers
Xamarin.Android 12 - Samsung Galaxy Tab crashes when taking images
In my app I'm taking pictures like this:
public void OpenCam()
{
// Standard
Intent intent = new Intent(MediaStore.ActionImageCapture);
_newFile = new Java.IO.File(Storage.Instance.TmpImageFilePath);
…

Aiko West
- 791
- 1
- 10
- 30