Questions tagged [android-9.0-pie]

Android 9.0 Pie (API level 28), formerly known as "Android P".

Android 9.0 Pie is the ninth major update and the 16th version of the Android operating system. It was first announced by Google on March 7, 2018. Android "P" was officially released on August 6, 2018 under the name "Pie". Android P harnesses the power of machine learning to make phone smarter, simpler, and tailored.

Summary of new features

You can find more info over here.

Android 9 features and APIs: official documentation

Behavior changes: official documentation

635 questions
10
votes
2 answers

Android Pie: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR) android::Theme::ApplyStyle(unsigned int, bool)

I am receiving the crash mentioned in the title in my play console It present only on Android Pie and limited to Pixel XL (marlin) and Pixel (sailfish) devices I have no idea what is causing it as I don't have anyway to reproduce this issue. Here is…
q126y
  • 1,589
  • 4
  • 18
  • 50
10
votes
1 answer

DownloadManager requests delayed on Android Pie

I have been using the DownloadManager APIs to handle downloads in one app for about 3 years. Recently I had some users on Android Pie complaining that sometimes downloads get stuck for several minutes before actually starting, thus compromising the…
10
votes
2 answers

Prevent wifi scan throttling on Android 9 (Pie) with NETWORK_SETTINGS permission

As some have noted, Android 9 (Pie) severely restricts wifi scans, thus crippling any apps that do wifi logging or wifi-based location lookups with a frequency similar to a GPS. As described in the ticket linked above: Each foreground app is…
user149408
  • 5,385
  • 4
  • 33
  • 69
10
votes
1 answer

java.lang.IllegalArgumentException: On Android P, a class injection can only be applied to BaseDexClassLoader

Our application is in development process where we are following MVP approach to provide better test coverage by writing unit test cases on our presenter. Prior to Android P, our test cases were executing without any problem but now after Android P…
Arpit
  • 1,052
  • 2
  • 13
  • 25
10
votes
2 answers

What support library version should we use with targetSDK 28?

I was going through this article , it says to update your project's compileSdkVersion and targetSdkVersion to API 28 . So I did but the support library gave error like support library should not use different version than compileSdk version I tried…
Manohar
  • 22,116
  • 9
  • 108
  • 144
10
votes
2 answers

Espresso test on Android P Preview: Detected problems with API compatibility error

I am using Espresso for instrumentation testing and running them on Android Preview P Emulator. I have 5 test cases in my test class out of which one test is failing when running the test suite and getting the error below. Detected problems with…
Charu Rani
  • 101
  • 1
  • 4
9
votes
1 answer

Why Google Pay stops working when my app is installed?

I developed an app which has been widely used together with Google Pay application since two years ago and there was no problem with its HCE NFC feature until the release of Android 9. However, I have received a lot of complaints from Android 9…
vojta
  • 5,591
  • 2
  • 24
  • 64
9
votes
2 answers

Awareness API. Get location.failure on certain phones

Awareness.SnapshotApi.getLocation(client) .setResultCallback(new ResultCallback() { @Override public void onResult(@NonNull LocationResult locationResult) { if (locationResult.getStatus().isSuccess())…
9
votes
2 answers

How can I allow Android to Doze while my app is open and the screen is on?

I am making an app that will run when the device is locked, via Activity#setShowWhenLocked(true). I do not want to prevent the device from entering a low-power state. I know that the system does this with Always-On Display, and the display has an…
8
votes
2 answers

How to use Intent.ACTION_OPEN_DOCUMENT in Android Pie

I'm making a profile photo change function using Retrofit in android pie. So I succeeded in uploading the photos taken with the camera to the server. But I don't know how to transfer the photos selected from the gallery to my server. (I'm fine with…
kim.h.w
  • 103
  • 1
  • 2
  • 6
8
votes
0 answers

Keystore getEntry returns NULL on Android 9

cI have encrypted and decrypted a login password which is stored in the Android Keystore. On Android 9, I observed that the app crashes when trying to decrypt the password(I am not able to reproduce it but people having Pixel 3 are one of the…
user2234
  • 1,282
  • 1
  • 21
  • 44
8
votes
1 answer

Mediaprojection issues on Android 9+

I made an OCR application that makes a screenshot using Android mediaprojection and processes the text in this image. This is working fine, except on Android 9+. When mediaprojeciton is starting there is always a window popping up warning about…
8
votes
1 answer

E/com.facebook.appevents.RestrictiveDataManager: updateRulesFromSetting failed

When I launch my app from Android Studio, with Facebook SDK installed on my device, Xiaomi Mi A2, it triggers the same error trhee times. It does not stop the app, but I don't know if I am missing something or simply, it is not important, but in the…
Juan
  • 83
  • 1
  • 6
8
votes
4 answers

How to check user's Bio-Metric Preference through Biometric api?

As we all know, from android 9.0, android introduced BiometricPrompt Api to provide standard authentication experience across growing range of biometric sensors (E.g Fingerprint,Face ID etc). Now with this new BiometricPrompt Api user can get…
8
votes
1 answer

Delete app intent not working on android pie

This worked in the past but does not work on my android pie device anymore (worked until the recent pie update): fun uninstallApp(packageName: String) { val packageURI = Uri.parse("package:$packageName") val intent =…
prom85
  • 16,896
  • 17
  • 122
  • 242