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

Unable to load local html file on API Level 30

My app load local html file that located under getFilesDir() via WebView#loadUrl(). Before targetSdkVersion = 29, below code is working. copyAssetsFile(this, "sample.html", getFilesDir().getAbsolutePath()); …
JchanKchan
  • 91
  • 1
  • 3
8
votes
1 answer

How to remove Accessibility shortcut option from my Accessibility app?

I have an AccessibilityService that will break if the user turns it on and off through the Android system user interface. I only want the user to be able to disable/enable AccessibilityService through my own Activity which will handle shutting it on…
8
votes
1 answer

Unable to attain an output after running main.dart I/flutter (15748): Observatory listening on ************************************

I usually run my apps on my physical device. But 2 days ago I updated it to Android 11(Vivo Z1 Pro)and after the update, I couldn't do it. It is just gets stuck on I/flutter (15748): Observatory listening on ************************************ The…
ikp-773
  • 93
  • 5
8
votes
0 answers

Android Camera Intent Image is not Uploaded in Webview

I got an takePictureIntent which is not null but it won't send it to the webview. Does anybody have an idea? It does work in older version 9 and under, it doesn't work in android version 10 & 11. Intent takePictureIntent = new…
Felix Niedermann
  • 321
  • 3
  • 18
8
votes
3 answers

Android 11 | Package visibility change for map navigation

From Android 11 there is a change in App visibility. In my application, I need to navigate to mail apps and navigation apps. The below code needs to be added in manifest
blueeyes
  • 143
  • 1
  • 4
8
votes
1 answer

Can't install CA certificate on Android 11 on Work Profile

Given self-signed CA certificate file which was generated on device, I'm trying to figure out a way to install it on work profile, since the traditional way of installing CA certificates using android.security.KeyChain.createInstallIntent() no…
Shlomi Katriel
  • 2,103
  • 1
  • 7
  • 20
8
votes
1 answer

Android 11 - System.loadLibrary for native C++ library takes 60+ seconds, works perfectly fast on Android 10 and below

In our game application for Android which is based on the game engine cocos2d-x, with most of the code being written in C++, we have a very strange and critical issue since Android 11: When the native library gets loaded in onLoadNativeLibraries it…
keyboard
  • 2,137
  • 1
  • 20
  • 32
8
votes
3 answers

Android 11 app crash with "The meta-data tag in your app's AndroidManifest.xml does not have the right value. Expected 12451000 but found 4323000"

My app starts crashing on Android 11 devices with the following error message "The meta-data tag in your app's AndroidManifest.xml does not have the right value. Expected 12451000 but found 4323000". I aware of such issues and I have already define…
8
votes
4 answers

How to create folder (Android R - Api 30)?

Read that Android 11 has scoped storage, but I can't find any information, how can I create and use folder in /storage/emulated/0/ ? Old methods works only on api 29 and below :(
Fedor Sedov
  • 101
  • 1
  • 1
  • 8
8
votes
0 answers

CameraX works on Android Q but not on Android R

I am trying to create a custom camera app using CameraX by following the example from Google Codelabs. The tutorial specifically states: We recommend using an AVD that is based on Android 11 or higher. It is working fine with API 29 (Android 10)…
Kellin Strook
  • 487
  • 1
  • 5
  • 18
7
votes
1 answer

Android 11/12 Wireless Debugging not available when using Mobile Hotspot as the network

Before android 11, i was able to wirelessly debug apps using this method turn on the mobile hotspot in the (target) android phone connect the computer to the hotspot run adb tcpip 5555 adb connect [ip of the target phone] The problem is Android 11…
Nasib
  • 1,173
  • 1
  • 13
  • 23
7
votes
3 answers

How to implement New Storage API in Android 11?

Scenario I've two apps, one is the Tracker App which records the incoming and outgoing calls and zipped these files, and sends the file path to the Main App via Inter-Process Communication which uploads these files to the server. Now I'm upgrading…
7
votes
5 answers

How do I hide the status bar in my Android 11 app?

Every method I came across to hide status bar of my Android app is deprecated in Android 11. Does anyone know about any current acceptable method? Also I use Kotlin to develop my apps.
7
votes
2 answers

Android 11 EventSequenceValidator: IntentStarted during UNKNOWN. exception thrown at start of every activity

In Android 11 SDK 30 at the start of every activity I get a stack trace as follows: 2020-12-30 10:08:00.175 1417-1436/? D/EventSequenceValidator: IntentStarted during UNKNOWN. Intent { cmp=com.lampreynetworks.ahd.health.at.home/.DebugLogActivity…
Brian Reinhold
  • 2,313
  • 3
  • 27
  • 46
7
votes
5 answers

Mediastyle notifications not working in android 11

My custom mediastyle notification no longer works in Android 11 for my music app. It works fine in Android 10 and previous versions. Is there any other code I need to add so that it works in Android 11. I should add that getting rid of the "…
janu935
  • 71
  • 1
  • 4