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

intent.resolveActivity returns null in API 30

Looking at intent.resolveActivity != null but launching the intent throws an ActivityNotFound exception I wrote opening a browser or an application with Deep linking: private fun openUrl(url: String) { val intent = Intent().apply { …
47
votes
5 answers

requestLegacyExternalStorage is not working in Android 11 - API 30

Google has introduced some changes recently related to storage APIs in API 29 like scoped storage and we opted out by adding 'requestLegacyExternalStorage=true' in Manifest. But now when I targetSdkVersion 30, this no longer seems to work. Some of…
Ebin Joy
  • 2,690
  • 5
  • 26
  • 39
46
votes
7 answers

How to set fullscreen in Android R?

I need to put a screen in fullscreen in my app. For this I am using this code: override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) requestWindowFeature(Window.FEATURE_NO_TITLE) …
43
votes
16 answers

Android Studio BumbleBee pair wifi not working

I am trying to connect my Android 11 device with the android studio over adb wifi but it is not working. I updated to the latest stable bumblebee and updated my SDK I tried turning off the firewall on my pc but it is the same result. When I use the…
39
votes
2 answers

NameNotFoundException when calling getPackageInfo on Android 11

After setting targetSdkVersion to 30 (Android 11) I'm getting android.content.pm.PackageManager$NameNotFoundException when doing packageManager.getPackageInfo(packageName, PackageManager.GET_PERMISSIONS) on packages that I know exists. The…
Roy Solberg
  • 18,133
  • 12
  • 49
  • 76
32
votes
4 answers

Can't upload signed apk that targetSdkVersion is 30

I generated a signed apk with a target sdk version of 30. (Android 11). I know it wasn't officially released but my application is ready for the new changes. I am trying to upload it to the google play console but facing the error: You uploaded an…
Ofek Pintok
  • 613
  • 1
  • 6
  • 13
32
votes
4 answers

What does QUERY_ALL_PACKAGES permission do?

Android R Preview 1 introduced a new permission called QUERY_ALL_PACKAGES. The documentation for the permission says the following: Allows query of any normal app on the device, regardless of manifest declarations. Has anyone worked out what this…
Sam
  • 40,644
  • 36
  • 176
  • 219
31
votes
4 answers

Consider adding a queries declaration to your manifest when calling this method when using intent.resolveActivity in android 11

I've an extension function for opening an intent for my activities: fun Activity.openIntent(action: String?, type: String?, uri: Uri?) { Intent() .apply { action?.let { this.action = it } uri?.let { this.data = it…
Saman Sattari
  • 3,322
  • 6
  • 30
  • 46
29
votes
5 answers

Saving files in Android 11 to external storage(SDK 30)

I am writing a new Application on Android 11 (SDK Version 30) and I simply cannot find an example on how to save a file to the external storage. I read their documentation and now know that they basicly ignore Manifest Permissions…
Robert
  • 325
  • 1
  • 3
  • 5
29
votes
1 answer

SpeechRecognizer not available when targeting Android 11

While testing an application after increasing the targetLevel to 30, I found that the SpeechRecognizer is not available any more, i.e. SpeechRecognizer.isRecognitionAvailable() always return false. If I set the targetLevel back to 29, without…
bwt
  • 17,292
  • 1
  • 42
  • 60
28
votes
3 answers

Android 11 (R) file path access

According to the docs file path access is granted in Android R: Starting in Android 11, apps that have the READ_EXTERNAL_STORAGE permission can read a device's media files using direct file paths and native libraries. This new capability allows…
HB.
  • 4,116
  • 4
  • 29
  • 53
26
votes
6 answers

Why YouTube Player API does not work on Android 11?

I tried the project explained on this YouTube video of how to play YouTube videos on Android apps: https://www.youtube.com/watch?v=Up9BjrIuoXY I tried to play YouTube videos with devices using Android 9 and Android 10 and the videos are played…
Misael L.
  • 261
  • 1
  • 3
  • 4
24
votes
2 answers

ActivityResultLauncher with RequestMultiplePermissions contract doesn't show permissions UI on launch

I am trying to request permissions using ActivityResultLauncher with ActivityResultsContract.RequestMultiplePermissions. import android.content.pm.PackageManager; import android.os.Bundle; import android.util.Log; import android.Manifest; import…
24
votes
3 answers

Using Android 11 gives a lot of output log about accessing SQLiteDatabase interface

I am using API 30 - Android 11.0 in my emulator. Whenever I am running my application, I am receiving more than 200 lines of the following message in the log: Accessing hidden method…
23
votes
9 answers

Android Emulator "Allow USB Debugging" dialog close right after showing

I'm trying to debug with Android R in Pixel emulated devices w/ PlayServices but the "Allow USB Debugging" dialog instantly close right after showing, so I can't click in "Allow" to AS connect to the AVD. I went to Developer options in Android to…
1
2 3
52 53