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
11
votes
0 answers

Issue affection only users on Android 11 version

My app has about 20k daily active users and there is a fatal crash affecting only android 11 users that I'm not able to identify the root cause. the stack trace is Fatal Exception: android.app.RemoteServiceException: Attempt to invoke virtual method…
Rafael Lima
  • 3,079
  • 3
  • 41
  • 105
11
votes
1 answer

IntentService is deprecated, how do I replace it with JobIntentService?

Following FetchAddressIntentService implementation with IntentService (in kotlin): class FetchAddressIntentService //Constructor of this service : IntentService(INTENTTAG) { //Receiver where results are forwarded from this service …
10
votes
4 answers

Google Play App Rejection - Not a core feature - Use of All files access

I have an application on play store to whom the targetSdkVersion is update to 30 from 29, which is getting rejected again and again by Google Play after an update. Previously, there was a permission of MANAGE_EXTERNAL_STORAGE in one of the SDK…
10
votes
3 answers

java.io.FileNotFoundException open failed: EEXIST (File exists) Android 11

I was trying to download an image from a server and save it in the external memory, but in Android 11 it gives me an error when I try to create the file. I have granted permission to access the external storage. i searched a bit on the internet and…
TheAppleGeeK
  • 139
  • 1
  • 2
  • 7
10
votes
1 answer

art::OatHeader::IsDebuggable() const Crash, Android 11, Google Ads SDK 19.7.0

I get this crash on many Android 11 Devices. Target SKD is 29 with build tools 29.0.2. Anybody else have this problem? What can we do instead of waiting for a new sdk release. I lost a few thousand users because of this crash. Facebook had a similar…
10
votes
2 answers

Context.startForegroundService() did not then call Service.startForeground() only on Android 11 Samsung devices

I am getting this crash for only Samsung devices running android 11. Apparently the application is calling startForegroundService(intent) and requiring me to post a notification for the user to know that I am running a foreground service, but this…
oziomajnr
  • 1,671
  • 1
  • 15
  • 39
10
votes
1 answer

ContentResolver.query() method throws "Invalid token limit" error

The following error occurs on Pixel devices with build number RQ1A.201205.003 or later. I would like to know the cause of the error and how to deal with it. Is this a bug or a spec change? ■code ContentResolver resolver =…
user44032
  • 101
  • 1
  • 4
10
votes
2 answers

What is Android 11's equivalent of '/dev/null'

Android 11 introduced multiple changes to file storage and access. Apparently one of them is that one can no longer target output to '/dev/null' (my scenario is actually exactly explained in this old question). Although the cited question solved the…
Boris Strandjev
  • 46,145
  • 15
  • 108
  • 135
10
votes
3 answers

Facebook Audience 6.2.0 /apex/com.android.art/lib64/libart.so (art::OatHeader::IsDebuggable() const+124) on Android 11

After updating to Facebook Audience 6.2.0 from 5.11.0 on an Android app with target SDK 29 I'm seeing a considerable amount of crash reports on a small percentage of Android 11 devices. According to a user that is having this crash and has…
10
votes
4 answers

How can I delete file on Android 11 (API 30) without system confirmation dialog?

I have an app which records videos to shared MOVIES folder. I can delete those files on Android 11 (API 30) with contentResolver.delete(uri, null, null) method in my recorded videos activity. But if I reinstall the app then it looses permissions to…
user25
  • 2,873
  • 2
  • 30
  • 66
10
votes
1 answer

Replacement for WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE in Android 11

Does anyone know the replacement for the adjust resize flag in Android 11? My layout has the EditText and it's getting hidden after the keyboard popup as I can't use the below the…
ketan muttha
  • 296
  • 2
  • 7
9
votes
4 answers

How to detect permission's permanent deny in Android 11?

In Android 11, when user select "deny" option for more than once for any permission request, then system will mark it as "Permanently denied".Once permanently denied, user has to enable in settings.From this time…
RajaKumar
  • 1,509
  • 1
  • 10
  • 11
9
votes
2 answers

Custom sound for NotificationChannel for Android 11 not working

I have push notifications with custom sounds working until android 10. Since Android 11 the sound attached to the notification channel stopped playing when the notification is presented as drop down style. It works when it is presented as full…
9
votes
2 answers

RemoteServiceException crashing my app on MIUI 11

I started receiving a weird crashes from MIUI 11 devices running Android 11 (so far only Mi 10 and Mi 10 lite 5G). I think this is a platform issue and nothing in my app as it's super specific to Xiaomi Android 11. Fatal Exception:…
crysxd
  • 3,177
  • 20
  • 32
9
votes
4 answers

Could not start AVD

I install the latest version of Android Studio Android Studio 4.0.1.then after i open Android studio and create sample project.after that i open AVD manager and "create virtual device",then after i download Android 10.0+ API 30 level emulator. Issue…
Android
  • 2,383
  • 1
  • 26
  • 44
1 2
3
52 53