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
33
votes
2 answers

DialogFragment Class Deprecated in Android P

The Android Documentation gives the following warning. This class was deprecated in API level P. Use the Support Library DialogFragment for consistent behavior across all devices and access to Lifecycle. Does this simply mean that the only…
32
votes
3 answers

WebView.loadData not working on Android 9.0 (API-29)

I have an article app, I am showing articles in WebView. In Android version 9.0 (API-29) this WebView is not working. The app shows NOTHING in my article Activity.…
gurkan stack
  • 413
  • 1
  • 15
  • 43
30
votes
3 answers

Android Pie (9.0) WebView in multi-process

Starting Android Pie (API 28), Google isn't allowing using a single WebView instance in 2 different processes. Documentation: https://developer.android.com/reference/android/webkit/WebView.html#setDataDirectorySuffix(java.lang.String) As required, I…
Lior Iluz
  • 26,213
  • 16
  • 65
  • 114
30
votes
8 answers

startScan() in WifiManager deprecated in Android P

How to get scan result from wifi for example every 3 seconds, without mWifimanager.startScan(); Google says : startScan() This method was deprecated in API level P. The ability for apps to trigger scan requests will be removed in a future…
EAK TEAM
  • 5,726
  • 4
  • 30
  • 52
29
votes
5 answers

Failed to find Platform SDK with path: platforms;android-P

Error:FAILURE: Build failed with an exception. What went wrong: A problem occurred configuring project ':app'. Failed to find Platform SDK with path: platforms;android-P apply plugin: 'com.android.application' android { …
Jay Halani
  • 913
  • 1
  • 9
  • 12
26
votes
3 answers

How to solve Android P DownloadManager stopping with "Cleartext HTTP traffic to 127.0.0.1 not permitted"?

I have already defined a custom network security config and included it in my manifest as recommended here res/xml/network_security_config.xml:
spartygw
  • 3,289
  • 2
  • 27
  • 51
25
votes
1 answer

Accessing hidden method logcat warnings and Restrictions on non-SDK interfaces

I have read in Android docs about "Restrictions on non-SDK interfaces": These restrictions are applied whenever an app references a non-SDK interface or attempts to obtain its handle using reflection or JNI... Handling of non-SDK interfaces is…
Kostas Trakos
  • 731
  • 2
  • 7
  • 9
21
votes
2 answers

Unresolved class 'FileProvider'

I am trying to take a picture on an android device and following this tutorial. The below code gives me an error on android.support.v4.content.FileProvider. Android studio says Unresolved class 'FileProvider'. I have the following…
Devin Norman
  • 315
  • 1
  • 2
  • 7
21
votes
2 answers

Can not find Canvas variables in API Level 28

The following Canvas Variables are not found in Android 28. canvas.saveLayer(0, 0, getWidth(), getHeight(), null, Canvas.MATRIX_SAVE_FLAG | Canvas.CLIP_SAVE_FLAG | …
Girish Bhutiya
  • 3,111
  • 5
  • 31
  • 50
21
votes
4 answers

Android 9 (Pie) Only: Context.startForegroundService() did not then call Service.startForeground() - Works fine on Oreo

We adjusted our ongoing notification for Oreo and it worked great. Now, on Pie only (not happening on Oreo devices), we're getting the titled error. Has something changed in foreground services in Pie that I'm missing? Here's the onCreate code for…
Psest328
  • 6,575
  • 11
  • 55
  • 90
19
votes
6 answers

Android WebView Has started crashing on Android 9

Hello Expert Android Developers: We have an android app and our basic workflow is as below User is sent a link via email or text message User clicks on the link and a page open on Chrome or Android default browser and have a button named JOIN User…
cooler
  • 753
  • 4
  • 9
  • 18
19
votes
5 answers

Android Notifications triggered by Alarm Manager not Firing when App is in Doze Mode

I have the following requirements. A user needs to be able to schedule a recurring reminder in my app that will trigger a push notification at an exact time every day. This is one of those questions that I hoped I would end up not submitting as…
pat8719
  • 1,700
  • 1
  • 26
  • 47
19
votes
0 answers

How can i get the caller phone number on android PIE without using read call log permission?

I've built a cool app that uses the outgoing/incoming phone number and send it some data. The phone number retrieval works fine in all android versions except android P (version 9). In that version i needed to add a READ_CALL_LOG permission in…
Idan ben shimon
  • 616
  • 5
  • 11
19
votes
0 answers

Can't find Android 9.0 (Pie) API 28 ARM System Images

Are there anywhere Android 9.0 (Pie) API 28 ARM System images (ARM, not x86 Intel) for AVD Manager? Thanks. Unofficial? Beta? Alpha? Any?
Alexander Savin
  • 1,952
  • 1
  • 15
  • 30
19
votes
2 answers

Android P displaying API compatibility error message

Running an app built against SDK level 27 on Android P somewhat unpredictably displays the following dialog (the dialog title is the name of the application): Detected problems with API compatibility (visit g.co/dev/appcompat for more info) The…
Paul Lammertsma
  • 37,593
  • 16
  • 136
  • 187
1
2
3
42 43