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

What is the reason of Android 12 ACTION_SENDTO intent extra anomaly?

In Android 12 if you add informations as subject(EXTRA_SUBJECT) and message(EXTRA_TEXT) when you use ACTION_SENDTO Intent to send a text email, these don't appear in the email client message, contrarely to all previous versions. An user in a similar…
AndreaF
  • 11,975
  • 27
  • 102
  • 168
0
votes
1 answer

Android 12 In/out-call notification and prominent chip

According to Android 12 documentation there is special in/out-call notification that will show that called 'prominent chip'. It's looking like that: I tried to use the code from Android example: // Create a new call with the user as caller. Person…
motis10
  • 2,484
  • 1
  • 22
  • 46
0
votes
1 answer

Android 12: Tracker apps with accessibility shown as floating icon in home screen

Tracker apps with accessibility feature is shown as permanent floating icon on the home screen when I updated my phone OS to Android 12 on Google Pixel 3A. It can't be removed without disabling accessibility. Is there anyway to not show the icon…
Srihari Karanth
  • 2,067
  • 2
  • 24
  • 34
0
votes
0 answers

Xamarin.Forms MediaElement portrait video stutter on Android 12 but landscape video works

We have a background video in our Xamarin.Forms application. It actually has two files: portrait video (1080x2304) for portait mode and landscape video (2304x1080) for landscape mode. They are both MP4 24 fps 4000 kbps. They video is played using…
0
votes
1 answer

App stuck on the Splash screen in Android 12 (API Level 31)

The application is stuck on the splash screen. No idea why? I have done everything the same as the documentation. Please look at my code and please tell. Android Manifest.xml file code:
0
votes
0 answers

android 12 porting : Surfaceflinger deadlock

I am trying to port android 12 in my virtual setup. After running for sometime, It goes into some deadlock. On further debugging I found that 'surfaceflinger' process is actually stuck. Using ps -e command I found that It is stuck on…
0
votes
0 answers

"android:exported needs to be explicitly specified" on Android 12

I integrated OneSignal push notification into my app and everything worked perfectly well until I upgraded to Android 12 (31). When I upgraded, AndroidStudio reports this error to me, I really don't know what I need to do to avoid it: Manifest…
Dejo
  • 141
  • 1
  • 8
0
votes
1 answer

Unable to attach files to Gmail from cache directory Android 12

I almost found many similar links - and none helped Gmail is not allowing me to get file from /storage/emulated/0/Android/data/myapppackage/cache/..pdf tried both manually using Gmail and programmatically Able to attach if the same file is…
Gopi.cs
  • 985
  • 1
  • 16
  • 41
0
votes
1 answer

Fetch unique device identifier of device(IMEI or serial number) in android 12

I am working on a app in which I am setting up my app as profile owner to get IMEI and serial number of device. But in android 12 both IMEI and serial number are restricted and we can’t fetch these parameters further. Can you please let me know what…
0
votes
1 answer

Android TargetSDK 30 package visibility restrictions don't apply to "com.google.android.gms"?

I am migrating my Android app to be TargetSDK 30 compliant. One of the limitations\changes for this is the package visibility restrictions: https://developer.android.com/about/versions/11/privacy/package-visibility and google requires the apps to…
Nilesh Pawar
  • 3,895
  • 3
  • 21
  • 19
0
votes
2 answers

Apps targeting Android 12 and higher are required to specify an explicit value for

Error: Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding component has an intent filter defined. manifest
unknown
  • 91
  • 3
  • 14
0
votes
1 answer

"Error inflating RemoteViews" when hosting some widgets on Android 12

I am getting an error when trying to host some widgets (in this case Gmail widget) on Android 12. I have a couple more widgets that show similar errors. On the first glance it looks like the problem resides in widget's xml file, but everything works…
Fossor
  • 268
  • 1
  • 7
  • 21
0
votes
1 answer

What is the way to load startup data and implement Android 12 Splash Screen together?

In my app I have a separate Activity for the splash screen. In that activity i am using an ExecutorService to run a heavy background task to load the startup data to a Application singleton class. Also i am doing a billing check in this class to…
Yasiru Nayanajith
  • 1,647
  • 17
  • 20
0
votes
1 answer

Is there a way to see if a user enabled "Use precise location" in Android 12?

I'm working on upgrading a feature that uses location in the background and I want to have precise location always, not just for one time. This is an essential app feature so if the process closes, I want to have it again when the app starts instead…
Blake
  • 77
  • 9
0
votes
0 answers

How to Share pdf using Scoped Storage android

I want to share PDF file from my app to other apps like whatspp, gmail etc. Scoped storage introduced from Android 11. I am getting the uri from Environment.getExternalStoragePublicDirectory but its deprecated instead we should use Scoped storage…
Ritesh Adulkar
  • 841
  • 11
  • 18
1 2 3
37
38