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
0
votes
1 answer

Cannot save name field in contact book in Oxygen OS 11

I have been trying to save contact into contact book via the following code, Intent intent = new Intent(Intent.ACTION_INSERT); intent.putExtra(ContactContracts.Intents.NAME, "Ryan"); While the above code works perfectly on most of the devices…
karan vs
  • 3,044
  • 4
  • 19
  • 26
0
votes
1 answer

Android 11 - Not able to open google map application with mimeType text/plain

Not able to open the navigation app when passing the mimetype as "text/plain"
0
votes
1 answer

can't control the initial directory where the SAF UI should start

I'm trying to save a text file using SAF (Storage Access Framework) but I can't control where it should be saved, I used this method from the Documentation as follows: private void createFile(Uri pickerInitialUri) { Intent intent = new…
0
votes
0 answers

Android 11 file sharing bug when I use hupu app

Bug when I use Hupu app I updated my MIUI version to 12.2.1.0 last night. When I was using hupu app this morning, I was told that 'Sharing exceptions, Android 11 and above require a file provider for sharing.'So anyone knows how to share files in…
Rou
  • 1
0
votes
1 answer

What is the mime type for sqlite db backup in android 11?

I have a feature of import and export DB file in my app. I have used mime-type application/x-sqlite3 and it was working fine in earlier versions. However, in Android 11 export is working as expected but when opt for import, DB file that was copied…
Patriotic
  • 2,103
  • 4
  • 26
  • 36
0
votes
0 answers

Android emulator for android 11 is saving pictures and videos in a different location compared to previous versions

I have a backup app that searches for photos and videos inside sdcard/DCIM and takes backup. Testing it on Android emulator for Android 11. Since android 11 it's saving the pictures and video taken through emulator inside sdcard/Pictures and…
0
votes
1 answer

Android API 30 build error, but was not occurred in API 29

When update project Kotlin Android targetSdkVersion from 29 to 30, The following code line has an error. webview.loadUrl(null) // error here: Null can not be a value of a non-null type String I checked the function declaration, it does not change…
larva
  • 4,687
  • 1
  • 24
  • 44
0
votes
1 answer

java.lang.IllegalArgumentException: All requested items must be referenced by specific ID (Android)

I'm getting this exception upon calling MediaStore.createWriteRequest(contentResolver, uris). As in Anrdroid Q and above we have to make createWriteRequest to write on storage. So I'm trying the following code and getting the exception. if…
Feroz Khan
  • 2,396
  • 5
  • 20
  • 37
0
votes
1 answer

Xamarin.Android: Prevent Package folder from external storage on app Uninstall with scope storage?

It'd be convenient if an application I'm writing stored some files to external storage permanently (so they persist after the application has been exited[destroyed]/Uninstalled). I want to take database backup and store some cache and log files. I…
user6159419
  • 247
  • 2
  • 19
0
votes
1 answer

My App doesn't install on Android 11, but works in older versions

I have an issue where I just updated my device to android 11 last night and my app doesn't seem to install on android 11. reverts back to the install button even after trying to complete the install. Any idea what I could be doing wrong? this is a…
Angela Heely
  • 419
  • 2
  • 4
  • 13
0
votes
0 answers

Effect of the update to Android 11 on persistable permissions already acquired

Scenario: An user has acquired the persistable permissions using ACTION_OPEN_DOCUMENT_TREE with an App that targets latest Android API level 30 on Android 10 or previous to comply with storage access framework access permission policies. The…
AndreaF
  • 11,975
  • 27
  • 102
  • 168
0
votes
1 answer

Android 11: How to know if permission is "While using this app" or "Only this time"?

My app must have Camera and Audio access without being requested each time (I don't want to get into details, but trust me on this one). Is there a way to know on Android 11+ if the user clicked "Only this time" on either Camera or Audio permission?
0
votes
1 answer

Android Q: Get list of configured network

The method to getConfiguredNetworks has now been deprecated in Android Q. I was using this feature in order to determine whether a Wifi network has any security such as WifiConfiguration.KeyMgmt.WPA_EAP. All of these are now deprecated and i am not…
Denominator
  • 196
  • 1
  • 11
0
votes
1 answer

MediaMetadataRetriever throws RuntimeException in Android 11

I'm trying to get a frame from a video with MediaMetadataRetriever and just in Android 11 the function MetadataRetriever.setDataSource(path: String) is throwing an exception like this: java.lang.RuntimeException: setDataSource failed: status =…
Buntupana
  • 984
  • 1
  • 15
  • 33
0
votes
1 answer

MediaStyle Notification progress bar keeps advancing when track is paused API 30

When I pause from the notification, the progress bar keeps advancing as it was still playing. If I press play again, the progress bar goes back to the position it was originally paused and resumes correctly. The problem comes when I pause: the…