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
7
votes
3 answers

The application's minSdkVersion is newer than the device API level (android-R)

I have a device with android version 10. Also, I have an emulator with API 22 this is a part of my build.gradle(:app) file: apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-kapt' apply plugin:…
7
votes
1 answer

What is the API level of Android R/11 to set in build.gradle in Android Studio?

I can use API R via Android Studio Emulator. I know I can run directly from Android Studio but still I want to set in Gradle level. android { compileSdkVersion 30 defaultConfig { applicationId "com.example.test" minSdkVersion…
Pooja Singh
  • 149
  • 2
  • 10
6
votes
1 answer

WifiManager getConnectionInfo() got deprecated in Android API level 31

We uses Wifimanger getConnectionInfo() method to get SSID and BBSID of connected wifi. But starting with Andorid API level 31 , Android has deprecated the getConnectionInfo() method. The solution that they have provided to use getTransportInfo()…
Ranjeet Kumar yadav
  • 152
  • 1
  • 3
  • 11
6
votes
2 answers

Check if external storage Manager is granted for ANOTHER app

I need to check if another app has the permission to External Storage Manager. With Environment.isExternalStorageManager() I check if the current app is granted. How can I do this for another app? I already tried to check the permission status…
6
votes
3 answers

Google Play store continuous rejection due to NOT compliant with the All Files Access Permissions policy

Google's review team keeps rejecting our App after Target SDK API level to 30 migration. The rejection reason is that your app has been rejected and wasn't published due to a policy violation. Policy: All Files Access Permission. Play store…
6
votes
0 answers

How to fetch pdf uri using MediaStore API in api level 30?

I am using media-store for listing pdf in recycler view. Media store does not load non-media files on android 10 and above but works for media files In build.gradle compileSdkVersion 30 buildToolsVersion "30.0.2" minSdkVersion 21 …
Saurabh Dhage
  • 1,478
  • 5
  • 17
  • 31
6
votes
3 answers

Captured Image is not storing in android 11

I'm unable to store captured image in (getExternalFilesDir(Environment.DIRECTORY_PICTURES)) Android 11 device. I have added in manifest and all file access also. But it's…
Pritham Bnr
  • 839
  • 2
  • 9
  • 16
6
votes
2 answers

File.listFiles() is returning null in android 11

I was creating an application to test whether File.listFiles() method is working or not. To check this I made an application and I used it there but this returning null in place of an array. This is my full code please help and I have granted all…
Rajkumar
  • 79
  • 1
  • 5
6
votes
1 answer

How to save and check if the file exists in scoped storage?

Till now, I check whether a file exists or not and if it does not then I save it to the device in Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES) but it is not supported from Android 10. So I tried to use mediastore API…
Aman Verma
  • 3,155
  • 7
  • 30
  • 60
6
votes
3 answers

PROCESS_TEXT Not visible in text selection menu in most apps after Android 11

I have the following configuration in the manifest file -
Gaurav Sharma
  • 296
  • 2
  • 11
6
votes
6 answers

Android 11 - Accessing Files in my app Android/Data folder

I'm really struggling with this for some reason and am hoping someone can help point me in the right direction. I am targeting Android 11 / API 30 which is where the trouble seems to all stem from. Targeting lower might work for me - but it seems…
Ed Kuhner
  • 369
  • 1
  • 2
  • 11
6
votes
1 answer

Android: Access non-sdk(manufacturer-supplied libraries) APIs via reflection in android >=11

Starting Android 11 the Reflection based non-sdk(Private) api calls are blocked. Android system checks the caller of the reflection method and if its non-system app it rejects with error as blocklist/blacklist.  "Accessing hidden method…
NitZRobotKoder
  • 1,046
  • 8
  • 44
  • 74
6
votes
2 answers

Android 11 - ROOT : mount /system fails with not found in /proc/system

My OS is PixysOS - Android 11 When I do mount -o rw,remount /system It fails saying - mount: '/system' not in /proc/mounts But usually it worked. I've also tested in android 9
Abu Sufian
  • 113
  • 1
  • 1
  • 9
6
votes
1 answer

SpeechRecognizer.isRecognitionAvailable() always false in Android 11

As the title implies, SpeechRecognizer.isRecognitionAvailable() returns false in Android 11 and I am not sure why that is as the device (Pixel 3 XL) is equipped to recognize speech. The documentation doesn't indicate that it changed in API v30. The…
Tom
  • 717
  • 2
  • 6
  • 23
6
votes
0 answers

How to hint content manager chooser to open directly on a selectable position with ACTION_OPEN_DOCUMENT_TREE

When you use ACTION_OPEN_DOCUMENT_TREEto pick the permission to a path where to store files in Android 11, the default Android content manager by default opens on a recently used path and the button "USE THIS FOLDER" for some reason doesn't even…
AndreaF
  • 11,975
  • 27
  • 102
  • 168