Questions tagged [android-11]

For questions regarding programming in Android 11 (a.k.a., Android R), the primary 2020 version update for the Android OS.

Google released the Preview version of Android 11. Android 11 features [link][1]

https://developer.android.com/preview

796 questions
22
votes
3 answers

How do some apps reach the contents of ".../Android/..." sub-folders on Android 11 without root?

Background There are various storage restrictions on Android 10 and 11, which also includes a new permission (MANAGE_EXTERNAL_STORAGE) to access all files (yet it doesn't allow access to really all files ) while the previous storage permission got…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
21
votes
2 answers

Strict Secure Cookie policy error in AdMob after updating to Android 11

After updating my app to compile with API level 30 (Android R, 11), I can't see AdMob test ads, and I'm receiving this error in the log: Strict Secure Cookie policy does not allow setting a secure cookie for http://googleads.g.doubleclick.net/ for…
NullPointerException
  • 36,107
  • 79
  • 222
  • 382
19
votes
2 answers

UnknownHostException after Android 11 update

Problem: Once an UnknownHostException is returned, the user continues to receive the same error unless the app is reinstalled or the device is rebooted. Of the users whose OS is Android 11, only a few users are having problems. The biggest problem…
hanmolee
  • 253
  • 3
  • 9
18
votes
2 answers

Android API level 30 setSystemBarsAppearance doesn't overwrite theme data

Pre-Android 11 (API Level 30) I had true set in my theme and was additionally changing this (when needed) in the the code with fun setLightStatusBar(){ window?.decorView?.let {…
17
votes
5 answers

GetNetworkType in Android 11

Following the changes posted here, the getNetworkType method is deprecated from Android R and onwards. When trying to use this method in a R compiled application, results in the following exception being thrown: java.lang.SecurityException:…
tomerpacific
  • 4,704
  • 13
  • 34
  • 52
15
votes
0 answers

android.os.Parcel.createExceptionOrNull Fatal Exception: java.lang.IllegalArgumentException

I am getting this exception on android 11 Samsung device. This is the stack trace: at android.os.Parcel.createExceptionOrNull(Parcel.java:2389) at android.os.Parcel.createException(Parcel.java:2369) at…
Rachit Goyal
  • 151
  • 1
  • 6
15
votes
2 answers

Can't install CA certificate on Android 11

On preview version of Android 11 I got an error when trying to install CA certificate: Intent intent = new Intent("android.credentials.INSTALL"); intent.putExtra("name", getCertName()); intent.putExtra("CERT", getCert()); startActivity(intent); The…
zvi
  • 3,677
  • 2
  • 30
  • 48
14
votes
2 answers

queryIntentActivities returning empty list in android 11

I am trying to open Gmail from my app ( on click of button) . I am facing issue in android 11 only . Its not opening the Gmail . queryIntentActivities is returning empty list in this case. Please help me how to fix this issue for android 11. Below…
Preeti Tiwari
  • 297
  • 3
  • 10
14
votes
3 answers

Android Camera intent not responding in Android 11

I am working with Camera Intent. Everything is working fine till Android 10, but in Android 11 I am getting result Code 0. Manifest Permission
developer
  • 423
  • 1
  • 4
  • 12
13
votes
2 answers

How to troubleshoot Crash in App Running Android 11 (SDK 30)

I've never seen a stack trace like that and have no idea how to troubleshoot. It didn't happen in Android 10 (SDK 29) or earlier. The app is built with androidx support library and SDK 30. The phone where it has happened: Samsung Note 10+ 5G running…
Oleg Gryb
  • 5,122
  • 1
  • 28
  • 40
13
votes
3 answers

Android 11 doesn't create app directory on external storage

Lately I updated my smartphone to Android 11 and I noticed that one of my app crashes on creating directory on external storage. I have read Android 11 documentation and here we are Starting in Android 11, apps cannot create their own app-specific…
KyluAce
  • 933
  • 1
  • 8
  • 25
12
votes
1 answer

How to get a list of installed apps in Android 11

This line is described on the developer site but I did not understand it perfectly Call getInstalledApplications() or getInstalledPackages(). Both methods should return a filtered list. Actually, I need to test Testing package visibility…
12
votes
3 answers

Android R hide statusbar -> move view down and a black rectangle appears

Android R + Pixel 4 Emulator : When I hide the status bar, the main view move down and a black square (same size as status bar) appears at the top. It was working before Android 11. It look simple but I'm not able to find a solution... And I need a…
user7590744
  • 167
  • 1
  • 6
12
votes
0 answers

Android-11 "Only-This Time" Permission Behavior

In Android-11, If I choose Only This Time permission and access Camera then: Observed Behaviour: One-Time permission stays granted for a few seconds (approx 3-5 sec) after we kill the application. If I re-open the application instantly or before…
Deeksha
  • 536
  • 5
  • 14
12
votes
2 answers

One-time permissions causing background scheduled jobs and alarms to be cancelled

We develop an Android SDK and, while testing the Android 11 Beta, we found a problem that does not seem to be reported yet. In Android 11, new one-time permissions have been introduced for Location, Microphone and Camera permissions. With this…
1
2
3
52 53