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
13
votes
4 answers

How to get DisplayCutout height when creating an Activity?

I have a game with full screen SurfaceView (Portrait) and thread that renders continously on the surface. The SurfaceView is initialized onCreate and its size is determined by the width and height of the screen in pixels. After it's created, it is…
luben
  • 2,512
  • 4
  • 30
  • 41
13
votes
6 answers

Keyboard doesn't show up when enter to activity in Android Pie (API-28)

I want to pop up the device keyboard when I enter to Email Login screen. I declared the windowSoftInputMode to "stateVisible" in the AndroidManifest.xml file:
13
votes
5 answers

Android P without TLS: network-security-config: cleartextTrafficPermitted not possible for IP (only domain)

I'm trying to connect to an embedded device with an HTTP-server which works fine on android < P (until I set targetSdkVersion 28) because there was a change that Network TLS enabled by default. There is a way to Opt out of cleartext traffic but it…
hardysim
  • 2,756
  • 2
  • 25
  • 52
12
votes
1 answer

Why Alarm icon is not shown ONLY on Samsung Android 9 devices when set with AlarmManager.setAlarmClock()?

I use AlarmManager.setAlarmClock() to set an alarm. Alarm is fired on all devices, including Samsung, but the small alarm icon near the clock (top right corner of the screen) is missing on Samsung devices with Android 9. What am I missing here? I…
12
votes
1 answer

Customize biometricPrompt

I have problem with customization biometricPrompt in android devices. I use only authorization with fingerprint, but some devices with android 9.0 (for example Samsung Galaxy S10+) for authorization use fingerprint if allowed but the same with…
12
votes
2 answers

startForeground() in onCreate() vs onStartCommand()

I have encountered huge amount of exceptions reported from Playstore. RemoteServiceException from Android P. I am creating android foreground service and then calling startForegound(with channel). But 99.9% only 9.0(android P) users report…
12
votes
3 answers

Vertical ViewPager and Android Pie Inconsistent Behavior with Swipe Gesture

My problem is closely related to two other questions that haven't been answered yet. ViewPager not responding to touch in layout area created dynamically in…
11
votes
2 answers

Android 9.0 NotificationManager.notify() throwing java.lang.SecurityException

I have been unable to reproduce this problem myself, but so far 5 users have reported it. I did recently publish an app update that changed the target SDK from 27 to 28 which I sure plays a part in this. All 5 users are running some flavor Android…
11
votes
3 answers

How to get WIFI SSID in Android 9.0(PIE)?

How to get WIFI SSID in Android 9.0(PIE)? My code is working fine till android version 8.1.0 but it is not working on Android 9.0 ConnectivityManager connManager = (ConnectivityManager) activity.getSystemService(Context.CONNECTIVITY_SERVICE); …
11
votes
1 answer

env(safe-area-inset-top) not working on Android Pie + WebView 69

I have a fullscreen cordova app, I used to use the css below for iPhone X's notch, padding-top: 25px; padding-top: env(safe-area-inset-top); and Android will ignore env(safe-area-inset-top), and use 25px to prevent the status bar from covering my…
Doctor.Who.
  • 607
  • 1
  • 7
  • 15
11
votes
8 answers

Can not build the project after upgrading to android - P

Below are the errors which I am getting C:\Users\Dell\.gradle\caches\transforms-1\files-1.1\appcompat-v7-28.0.0-alpha1.aar\51cd62c84e9404bd66ab4daf252c48a1\res\values-v28\values-v28.xml Error:(9, 5) error: resource android:attr/dialogCornerRadius…
Naveen
  • 481
  • 2
  • 6
  • 23
10
votes
1 answer

Android 9 WebView (also admob ads) not loading after Chrome update

We have an application that depends heavily on web views we noticed after last week that if an android 9 user spent some time loading webviews about 10 to 30 after that webviews just show blank page and loading progress gets stock at 10% Also…
Ahmed na
  • 1,084
  • 2
  • 13
  • 34
10
votes
4 answers

Invalid Layer Save Flag - only ALL_SAVE_FLAGS is allowed with Android 9

I'm getting the following error when updating my targetSdkVersion to 28, the app that works perfectly in previous versions but specifically in android 9 gives me that error. I have seen several github links where they mention that the base…
10
votes
0 answers

Check if app launcher has menu key/swipe up for app drawer OR apps on home by default

I was trying to create app shortcut at home. I did that quite well for most devices. with this private void setShortcutIcon() { if (ShortcutManagerCompat.isRequestPinShortcutSupported(this)) { if (Build.VERSION.SDK_INT >=…
10
votes
1 answer

Android pie edittext typed text not showing when soft keyboard is open

Edittext input text is not visible and I type in using soft keyboard but once I press next you button I am able to see the input value. code is working fine on older android versions but not on android pie.