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
24
votes
2 answers

Android 12 Splash Screen API customization

Since Android released the new Splash Screen API with Android 12, a lot of apps had issues with duplicate splash screens, lack of customization, etc. Right now, it is possible to set the background color and icon in the middle of it, but is it…
aherman
  • 900
  • 1
  • 8
  • 16
23
votes
3 answers

Android 12 - Foreground service launch restrictions

I'm developing an SDK that needs to startForeground service from the background. Because it uses background location and Bluetooth-related works. If the application is killed, the monitoring is performing in the background. That's why I'm using the…
21
votes
2 answers

How to verify android app links on android 12 and higher?

Problem is opening application over link in android 12 or higher. Everything works fine on lower versions of android. When I look at my “App Info” -> “Open by default” screen. I see unapproved links. When I turn on that link as approved inside…
iWizard
  • 6,816
  • 19
  • 67
  • 103
20
votes
3 answers

Got "lacks permission android.permission.BLUETOOTH" on Specific device after android 12 update

So i have an application that connect to bluetooth printer. It is fine and running on all devices except these devices: Xiaomi redmi note 10 Pro (Updated to android 12 with MIUI 13.0.1) Oppo Reno 5 4G (model: CPH2159) (Updated to android 12 with…
Alkaaf
  • 265
  • 1
  • 2
  • 11
20
votes
1 answer

Android 12: How to prevent activity restart on changing phone wallpaper?

On Android 12, If we open an activity Go to the home screen of the phone to change the wallpaper Switch back to our activity, the activity restarts. It seems it is related to the Material You theming. I would like to disable the restarting of…
q126y
  • 1,589
  • 4
  • 18
  • 50
19
votes
1 answer

Is there a way to change the shape of the splash screen icon in Android 12?

I'm in the process of customizing the new splash screen that is being implemented in Android 12. I have been able to change the icon to the one I want using "< item name="windowSplashScreenAnimatedIcon">@drawable/..." but because it is a…
emmastone
  • 191
  • 1
  • 5
18
votes
0 answers

How to close notification panel without AccessibilityService in Android 12?

I'm looking for a way to close a notification panel after the user pressed some button in my notification. Currently, I'm doing it like that: sendBroadcast(Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS)) But, this way is deprecated on Android 12 and…
VolodymyrH
  • 1,927
  • 2
  • 18
  • 47
17
votes
3 answers

Android 12- Material You theme not working in emulator

I have created an android 12 emulator to see one of the features that is material you theme Emulator details are Name: Pixel 5 CPU: x86_64 the issue is when I change the wallpaper from settings -> wallpaper & style, wallpaper changed but the theme…
Mittal Varsani
  • 5,601
  • 2
  • 15
  • 27
16
votes
3 answers

Add multiple sizes of splash screen in ionic cordova when migrating to android 12 and above

Am trying to migrate ionic cordova app to android 12 (api 32). Cannot use tags anymore. instead that I should use . Previously I generated resources files…
16
votes
2 answers

Cannot resolve method 'installSplashScreen' in 'SplashScreen'

I'm trying to migrate my existing custom Splash screen implementation to Android 12. I have implemented it exact same way as mentioned in the provided link : as mentioned in the provided link When I write following statement in my SplashActivity, it…
Abhishek Kumar
  • 4,532
  • 5
  • 31
  • 53
15
votes
3 answers

Splashscreen Icon not showing entirely

I use the new splashscreen api to add an evenly splashscreen to all android versions down to API Level 23. Are there any requirements for the splash icon? Currently i try to use a svg and i thought it would be sized automatically on different…
Lars
  • 794
  • 7
  • 21
15
votes
1 answer

How to implement themed icons by Material You in my Android App?

I can't find anything about that online, no documentation, nothing. Maybe one of you know how to do it or have got some advice for me. Thank you in advance.
Tom
  • 173
  • 1
  • 6
15
votes
2 answers

Emulator for Android 12 preview no connection

I have installed the Android 12 Preview emulator. I had a lot of problems because the emulator was crashing on start up but after uninstalling and installing it again and restarting the machine etc, I managed to start it. The problem I have now is…
kingston
  • 11,053
  • 14
  • 62
  • 116
14
votes
0 answers

Android 12 custom splash screen with background image

Can we use a background image drawable instead of a background single color. For other OS versions we had background image. Now how to set the exact same on Android 12? Any workaround possible?
14
votes
1 answer

In Android 12/API 31, Geofence doesn't work with IMMUTABLE pendingintent. Why?

A new PendingIntent field in PendingIntent is FLAG_IMMUTABLE. In 31, you must specify MUTABLE or IMMUTABLE, or you can't create the PendingIntent, (Of course we can't have defaults, that's for losers) as referenced here According to the (hilarious)…
Mathias
  • 3,879
  • 5
  • 36
  • 48
1
2
3
37 38