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

Is there any changes required for Android 11 storage policy?

As you all know 5th May is the deadline for using Scoped Storage for Android 11. And here's the case for: I have an app in which user uploads an image during the Sign Up process and I'm using this method to select an image from Gallery Intent…
0
votes
0 answers

Flutter Microsoft login app crash on android 11

I'm currently using Microsoft and Google as login providers for my flutter app. After few months I build release apk and installed it on android 11 phone. When I try to login using Google it works fine. But When I try to login using Microsoft it…
Amith Dissanayaka
  • 939
  • 3
  • 12
  • 23
0
votes
1 answer

Problems with background execution on Android 11 devices

Recently I have discovered that about 2 months ago there was released Android 11 update for Samsung devices. Samsung has in this version of OS decided to really strictly suspend the apps/services running in the background (more info) So e.g. when…
0
votes
1 answer

Inconsistent behavior after isExternalStorageManager() = true in Android 11

I added a Preference button in my PreferenceScreen to call for Settings.ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION in Android 11: prefn.setOnPreferenceClickListener(arg0 -> { Intent intent = new…
Luis A. Florit
  • 2,169
  • 1
  • 33
  • 58
0
votes
0 answers

Android 11 - How to Access and Open Media Files?

I have a video recording app that records and saving it in the External Storage,specifically the app-specific-storage one /storage/emulated/0/Android/data/com.example.xxxx/files I used the context.getExternalFilesDir(Environment.DIRECTORY_MOVIES)…
Matthew Nantes
  • 98
  • 2
  • 10
0
votes
1 answer

Android: How to trim WAV audio programmatically in API 30?

I need to be able trim wav audio files for an application I'm building.. but I have several problems. I tried using FFmpeg-android, but if you target the latest SDK, and in the future, android no longer allows using "FFmpeg.execute". I also tried…
0
votes
1 answer

how to use expo-image-picker with android 11 scoped storage?

I was using expo-image-picker in my expo managed react native app. It was working fine. I just needed to use the camera to take new photo and to pick photo from gallery for my app. For these I was using the following…
0
votes
0 answers

Android 11 all pdf files access fails

I'm targeting now android 11 and all of us know about scoped storage, my case is that I need to access all pdfs files on the phone it's working for any android less than android 11. I've tried to grant permission…
Moustafa EL-Saghier
  • 1,721
  • 1
  • 13
  • 43
0
votes
0 answers

Am I understant correctly about requestLegacyExternalStorage on Android 11 will be ignore

I got the alert from google as the screenshot. As I understand that is the flag requestLegacyExternalStorage will be ignore only on device running android 11+. So with the Target version 29 the flag requestLegacyExternalStorage = true still valid…
Khang Tran
  • 467
  • 5
  • 16
0
votes
0 answers

How to check cellular data limit option is enabled or disabled in android 11 device?

On the android 11 device, I want to check for the "data limit" option is enabled or disabled on the device those are running Android 11. Currently, I am using NetowrkPolicy, NetworkPolicyManager, NetworkTemplate classes. But those all are hidden…
0
votes
1 answer

Package visibility android Sdk 30

I recently targeted Android sdk 30 and I added the following snippet in my code
Javier
  • 1,469
  • 2
  • 20
  • 38
0
votes
0 answers

How to create folder & save app related files (jpg) as per Scoped Storage

Just like Whatsapp, Telegram does, I want to create a folder "DemoApp" and save .jpg images inside it in Internal storage Environment.getExternalStorageDirectory().getPath() of Android 11 as per scoped storage. I have already given following…
Sandeep
  • 455
  • 4
  • 26
0
votes
0 answers

java.lang.VerfyError: send e-mail in Android 11

I wrote a method to send an email from my app. This method works perfectly in all versions of Android, except in Andorid 11. This is my implementations in Grandle: implementation 'com.sun.mail:android-mail:1.6.0' implementation…
0
votes
0 answers

is there a transient fix for scopedStorage feature in android 11?

I have an app that uses android 29 sdk and has requestLegacyExternalStorage flag set to true in AndroidManifest.xml, while planning to migrate from android 10(API 29) to 11(API 30) there are few issues related to the File APIs which are used to…
0
votes
1 answer

Android 11: Send e-mail with automatically attached file

I want open and email app with already generated text, subject, recipient and attached file, it works with android sdk version 29 (android 10) and lower. However starting Android 11 there are restriction to writing file in external or internal…