Questions tagged [android-10.0]

Android 10 (API level 29), formerly known as Android Q, is 2019's major Android OS update.

On March 13th 2019, Google released the beta version of Android Q. Android Q features link

980 questions
218
votes
9 answers

PreferenceManager getDefaultSharedPreferences deprecated in Android Q

PreferenceManager getDefaultSharedPreferences is deprecated in Android 10. How do I replace it?
Martynas B
  • 2,843
  • 2
  • 12
  • 15
96
votes
10 answers

Crash on Android 10 (InflateException in layout/abc_screen_simple line #17)

My application works fine from Android 4.3 until Android 9 Pie, but my application doesn't work on Android 10 (Q API 29) and crashes. This is my logcat - why this is happening? java.lang.RuntimeException: Unable to start activity …
user11453013
72
votes
4 answers

"Unknown bits set in runtime_flags: 0x8000" warning in Logcat on Android Q emulator

I'm getting this warning as the first line from my app in logcat, and I have no idea what it refers to and how I should go about fixing it. Google doesn't offer much info on this (in fact, none at all). Please advise. What kind of flags might this…
Violet Giraffe
  • 32,368
  • 48
  • 194
  • 335
64
votes
2 answers

Is adb remount broken on android api 29?

adb remount does not work correctly on api 29 when running from the emulator. The command works fine on all other emulators that have been tried (18, 23, 25, 26, 27 and 28). Any ideas why this might be? Skip mounting partition:…
user12090237
  • 643
  • 1
  • 5
  • 6
61
votes
10 answers

AAPT: error: attribute android:requestLegacyExternalStorage not found

collection error in AndroidManifest.xml AAPT: error: attribute android:requestLegacyExternalStorage not found. Although the attribute is there but it writes an error My AndroidManifest.xml
Eugene Sermyagin
  • 1,101
  • 2
  • 9
  • 15
57
votes
5 answers

How to directly download a file to Download directory on Android Q (Android 10)

Lets say I'm developing a chat app that is able to share with others ANY kind of files (no mimetype restriction): like images, videos, documents, but also compressed files like zip, rar, apk or even less frequent types of files like photoshop or…
Rubén Viguera
  • 3,277
  • 1
  • 17
  • 31
47
votes
6 answers

Is there an API to detect which theme the OS is using - dark or light (or other)?

Background On recent Android versions, ever since Android 8.1, the OS got more and more support for themes. More specifically dark theme. The problem Even though there is a lot of talk about dark mode in the point-of-view for users, there is almost…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
45
votes
4 answers

Robolectric and Android SDK 29

When will Robolectric be compatible with Android SDK 29? Did I upgraded too early by changing targetSdkVersion and compileSdkVersion to 29? When I run my unit tests I get this huge stacktrace: java.lang.IllegalArgumentException: API level 29 is not…
Bencri
  • 1,173
  • 1
  • 7
  • 22
42
votes
3 answers

Android 10: What are my options to save files on external storage into a directory called "/sdcard/my-app/"

Up until Android Pie I always stored files which the app needed to get stored on /sdcard/my-app/, which I got via File fBaseDir = new File(Environment.getExternalStorageDirectory(), "my-app"); One of my App stores hundreds (up to multiple thousands)…
Daniel F
  • 13,684
  • 11
  • 87
  • 116
32
votes
4 answers

/apex/com.android.runtime/lib64/bionic/libc.so (abort+160), abort crash in Android 10 devices

I recently changed targedtSdk to 29 and made a release. And started getting this crash called abort. Below is the stack trace that I got from play console. All the crashes are happening only in Android 10 devices. Apart from these, there is no other…
AndroidDev
  • 1,485
  • 2
  • 18
  • 33
32
votes
3 answers

How to detect full screen gesture mode in android 10

In Android 10, users can enable full screen gesture mode. I want to detect whether the device in full screen gesture mode or not. I can't find anything in documentation. How to do it programmatically at run time? Java or kotlin language answer is…
Jaya Prakash
  • 549
  • 6
  • 17
30
votes
7 answers

android 10 doesn't support whitelist plugin

Android 10 doesn't support "whitelist plugin", when I add android platform it skips whitelist plugin which cause "file transfer plugin" issues when building or running the application ionic cordova platform add android@latest Installing…
BASSI Yassine
  • 301
  • 1
  • 3
  • 4
29
votes
8 answers

permission is denied using Android Q ffmpeg": error=13, Permission denied

I want to get the frames from the RTSP video using ffmpeg. But for android 10 above I am getting error as below. E/FFmpeg: Exception while trying to run: [Ljava.lang.String;@55e447f java.io.IOException: Cannot run program…
v teja
  • 613
  • 2
  • 7
  • 17
28
votes
4 answers

How to open activity (incoming voip call) in Android 10

In Android 10 there apply new restrictions for apps. We can no longer start an activity from background. While this may be fine for the majority of apps, it's a killing blow for voip-apps that need to show an incoming call after a push notification…
Grisgram
  • 3,105
  • 3
  • 25
  • 42
26
votes
5 answers

Android Q (10) ask permission to get access all storage. Scoped storage

In Android 10 apps that need to access storage need to ask permission to access a concrete path. But apps like file explorer can ask permission for access to the root storage and gain permission to read/write to all storage. That is what I am trying…
user2983041
  • 1,761
  • 4
  • 19
  • 31
1
2 3
65 66