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
19
votes
0 answers

What's the use and advantages of using ImageDecoder of Android P?

Background Android P presents a new API for loading images, using ImageDecoder class. The problem Not much is documented about this class, so I'm just curious about its usage, and whether I should consider using it when possible, instead of Glide…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
18
votes
2 answers

Getting the caller ID in Android 9

I have been using the following code in a BroadcastReceiver to get the caller ID of incoming calls: @Override public void onReceive(Context aContext, Intent aIntent) { String action = aIntent.getAction(); if (action==null) return; if…
haris
  • 481
  • 4
  • 9
17
votes
3 answers

Network security config for range of ip addresses?

In Android P, cleartext communication is disabled by default. Instead, there are two options: One needs to explicitly declare that cleartext communication is allowed in the manifest file with Or needs to declare the allowed domains that allow…
user10293922
  • 181
  • 1
  • 3
17
votes
4 answers

How to handle notch(display cutout) in android API lower than 28?

Android added notch support on API 28, but how to handle it on devices running API 27 (Honor 10, Huawei P20, etc.) ? I was trying to use DisplayCutoutCompat but I was not able to create an instance of it since documentation does not really point…
blade
  • 804
  • 1
  • 9
  • 18
17
votes
2 answers

Android BiometricPrompt Compat library

Hi as mention in this post there is BiometricPrompt API for devices supporting Android O and lower but I am unable to find out BiometricPrompt Compat Library (as mention in image), is anyone able to help me to point out where is that support…
Nikhil
  • 1,023
  • 17
  • 35
16
votes
7 answers

Media projections require a foreground service of type ServiceInfo.FOREGROUND_SERVICE TYPE_MEDIA_PROJECTION in Android Pie and Q

any body knows why this error occur, Media projections require a foreground service of type ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PROJECTION on getMediaProjection() even i call getMediaProjection() method after calling startforeground()…
16
votes
4 answers

NullPointerException due Attempt to invoke virtual method 'android.os.IBinder android.view.SurfaceControl.getHandle()' on a null object reference

Recently I did migration of my application to targetSdkVersion = 28. After publishing the updated app to Google Play I started to get very strange crash reports in Fabric.io: Crash report Fatal Exception: java.lang.NullPointerException Attempt to…
15
votes
2 answers

Recreate Activity provoke black screen on android 9

When call activity.recreate(), there is a black screen (for 0.5 second). I don't know where it comes from since it was working fine on other devices
Mizz
  • 151
  • 1
  • 4
15
votes
1 answer

Android 9 Pie crash (com.google.android.gms... ClassNotFoundException)

I have a Unity3D game published on Android, and it have worked well so far. However, the Android Vitals Dashboard is now reporting a lot of crashes. Here's the detailed info: By Android version: Android 9 4500 …
Eduardo Coelho
  • 1,953
  • 8
  • 34
  • 60
15
votes
2 answers

What is versionCodeMajor? And what is the difference with versionCode?

I just found that PackageInfo.versionCode is deprecated in Android Pie. They point you to use PackageInfo.getLongVersionCode() instead. The JavaDoc of this new method is: Return versionCode and versionCodeMajor combined together as a single long…
Brais Gabin
  • 5,827
  • 6
  • 57
  • 92
15
votes
2 answers

Install APK using root, handling new limitations of "/data/local/tmp/" folder

Background So far, I was able to install APK files using root (within the app), via this code: pm install -t -f fullPathToApkFile and if I want to (try to) install to sd-card : pm install -t -s fullPathToApkFile The problem Recently, not sure from…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
14
votes
2 answers

How to fix "dalvik.system.BaseDexClassLoader.findClass (BaseDexClassLoader.java:134)"

After I upgraded to the 64-bit armeabi library and released the app to googleplay in bundle packaging, I encountered the following problems in googleplay crashes report page: java.lang.RuntimeException: at…
user2811667
  • 201
  • 1
  • 3
  • 4
14
votes
2 answers

Can not show popup window out of the keyboard view in Android Pie

I am making a Keyboard which shows a popupWindow of languages. In all device, I get perfect popupWindow outside of keyboard but in only Android Pie, I can not show popupWindow outside of the keyboard. I want to show popup outside of keyboard's…
Priyanka
  • 3,369
  • 1
  • 10
  • 33
14
votes
3 answers

DownloadManager fails to download to external storage on Samsung with Pie

Downloading a file using the Android DownloadManager to the external storage fails on Samsung Galaxy S9, S9+ on Android 9 (Pie). Download works for Samsung Devices with Android 8 or other devices with Android 9( e.g. Pixel 2) I have added to the…
14
votes
6 answers

Why Android studio won't run app on Android Pie (9.0)?

I've upgraded my Google Pixel to Android 9.0/Pie. When I try to run an application from Android studio I don't see the Google Pixel in the list, there's only a null device named FA69R0306649. When I run my application, Android studio tries to…
1 2
3
42 43