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
0
votes
1 answer

Handle WifiManager#startScan on foreground in Android P

As some information from here and here. We know in Android P Each foreground app can scan 4 times in a 2-minute period All background apps combined can scan one time in a 30-minute period After testing I see, from 5th scan (in 2-minutes), scan…
Linh
  • 57,942
  • 23
  • 262
  • 279
0
votes
1 answer

If notification group is blocked but channel is enabled, will the notification get displayed?

Android P gives capability to disable a notification group. If this group is disabled by the user, will notifications belonging to a channel in the group be displayed? (assuming the channel is still enabled)
Aparna
  • 463
  • 5
  • 16
0
votes
1 answer

Should these two be the same? NotificationChannel.setGroup and Notification.Builder.setGroup

While creating notification channels, I categorise them by assigning them to a group (NotificationChannel.setGroup). Later, while displaying notification, I use Notification.Builder. Should the value given to setGroup method here be the same as the…
0
votes
1 answer

Android Pie 9.0 not playing the audio

I am getting the following errors when I run my app on Android 9.0. It is not playing the mp3 audio on 9.0 but working good on lower versions. W/AudioTrack( 5492): Use of stream types is deprecated for operations other than volume…
0
votes
0 answers

Notifications wont show android studio

Im trying to get a notification when pressing a button, but it is not showing up. I have followed a lot of tutorials and i think it has something ti do with the version of android. Something with channels. I just dont know how to implement it.…
user10885735
0
votes
0 answers

Getting java.lang.SecurityException: DownloadManager: Neither user 10173 nor current process has android.permission.ACCESS_ALL_DOWNLOADS

Getting this error in Android 9.0 while Downloading file using DownloadManager. E/DatabaseUtils: Writing exception to parcel java.lang.SecurityException: DownloadManager: Neither user 10173 nor…
Harish Penta
  • 470
  • 1
  • 7
  • 20
0
votes
2 answers

TargetSdkVersion is 28 but highest api level is 26

I am trying to update my app from Nougat API level 26 to Android Pie, API level 28. I set my targetSdkVersion to 28, and compileSdkVersion to 28. I have also updated all my support library versions to latest (which is also 28). Here is my app's…
Moon Cheesez
  • 2,489
  • 3
  • 24
  • 38
0
votes
0 answers

HttpUrlConnection connect() method returns IOException, only from android 9 (pie)

In my android app I have a method that checks connection with server by url. It is working great, but only on devices with oreo and below. From android 9 getResponseCode() method from HttpUrlConnection always returns IOException. Logcat also shows a…
0
votes
1 answer

How to repeat run service every 2-5 minutes in Android 9 (Pie)

I am working on application which tracking user way to work and back to home. Application is based on widget (where are printing informations to user) and background service which checking localizations and cunting informations and displaying on…
MikeB
  • 37
  • 2
  • 9
0
votes
0 answers

Lauching a task when WIFI connects on Android Oreo or newer

I have an app that run some security checks and alerts the user using notifications when the device connects to a WIFI network with an specific SSID. The app run checks in background and if there is some security issue alerts the user using…
Cesar
  • 707
  • 3
  • 13
0
votes
1 answer

How to avoid appcrashes in Android 9 with AmazonSNSClient?

In Android 9 (API 28) my App crashes when creating a new AmazonSNSClient (in API 26 I don't get any errors): AmazonSNSClient pushClient = new AmazonSNSClient(credentialsProvider); My LogCat says: java.lang.NoClassDefFoundError: Failed…
0
votes
1 answer

Map crashes in Nexus 5X API 28 but runs perfectly fine in Google PIXEL 2 XL API 27

I have followed the Google Developer's Guide to create a map activity using Google Map's API. My API key is already activated, so what's the cause of the crash in Nexus 5X. Sharing my…
user10729384
0
votes
1 answer

Ble beacon Android Oreo and P not waking app from doze mode

I have an app that uses Bluetooth Beacons. When app is in doze mode proximity notifications from bluetooth beacons are not waking the phone. It is only when I unlock phone that the notification is delivered. This issue is the same for foreground or…
0
votes
0 answers

Media background service was killed by system on Android 9 (Api 28)

My media player running as background service really well on different Android versions (emulator and devices) : 5.1 (lollipop) 7.1.1 (Nougat) 8.1 (O) But on Android 9 (P) emulator, after running in about 30 seconds, my media player suddenly…
0
votes
0 answers

Is GridLayoutManager broken and not retaining state in RecyclerView-v7:28.0.0? - what changed?

So, I am currently supporting development efforts for an Android App that was previously developed by an entirely different group of developers. As part of my ongoing support efforts, we had upgraded the TargetSdkVersion from 23 to 28, and…