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

Cryptography Changes in Android P

I have an encrypted messenger app that Android P broke. In P any call to any call to SecureRandom.getInstance("SHA1PRNG", "Crypto") will throw NoSuchProviderException. EDIT If we are not supposed to use SHA1PRNG, then what provider are we…
Dean Blakely
  • 3,535
  • 11
  • 51
  • 83
0
votes
1 answer

Flash when changing to dark/light mode dynamically

I have a requirement that when a switch is clicked, I need to invert the mode from dark to light and vice versa respectively. But the twist part is, that I do not want to finish the activity and restart it as I don't want the flash/flicker of…
Kruti Parekh
  • 1,271
  • 9
  • 21
0
votes
2 answers

Android-9 CallLog: CACHED_NAME and CACHED_PHOTO_URI always return NULL from CallLog

I had an app where I fetched Call Log and Contact List and showed them in a RecyclerView. Everything was going fine up to android-8. Suddenly I found that Names are not showing on an Android-9 Device. Then a debug shows that CACHED_NAME and…
Md Tarik Mahmud
  • 331
  • 3
  • 8
0
votes
1 answer

Android: White View shown when keyboard shown on Pie and Oreo Version

I am facing a strange problem when keyboarad shown in fragment it white overlay view shown above the layout and disapper when keyboard hide this picture when keyboard hide this picture when keyboard shown
0
votes
2 answers

uses-library tag in AndroidManifest.xml vs useLibrary in Gradle

I want to build a project, that uses Apache HTTP client, for Android P. As far as I understand, there are 2 ways to do this: First via AndroidManifest.xml:
0
votes
1 answer

Bluetooth setPin Android 9 Pie not working anymore

I recently got Android 9.0 on my Huawei Mate 9 device. Before I had Android 8, and BluetoothDevice.setPin was working fine until then. Any clues why this isn't working anymore? public class BlututReceiver extends BroadcastReceiver { private…
klaudyuxxx
  • 374
  • 2
  • 13
0
votes
1 answer

Broadcast receiver at Android 9 for BT doesn't work as at Android 5.1

I'm using Java for my project for Android, and as a debugger at home I'm using Sony Xperia Z @ Android 5.1. Everything's fine with broadcast receiver there. Not at home when I have some spare time I'm using my personal Pixel @ Android 9. And one day…
0
votes
1 answer

How can I enforce internet connection only through wifi?

We have a Wifi-connected device. We need to connect to the device via wifi for installation. Once connected, the application sends the request on a ip. This works smoothly before android 9. But I'm having some problems when I do with android 9.…
Mustafa Kuloğlu
  • 1,122
  • 1
  • 8
  • 16
0
votes
1 answer

Detect if vpn service is on or not problem

I'm facing problem with some devices like some android box or Huawei Phones I need to protect my app if user use packet monitor app what I did is if user has a vpn active on their device don't request jsonparse but some devices even if vpn…
0
votes
0 answers

Terminate incoming call by TelephonyManager on Android P is not working

On Android 8 and below, i'm using TelephonyManager to terminate incoming call. But on android 9, my code is not working. I found on Google docs, they said that we had an official API for rejecting calls on…
Karr
  • 1
  • 1
0
votes
1 answer

E/RecyclerView: No adapter attached; skipping layout - problem with Android 9.0 Pie

I'm writing some application for Android and during the building if the project, I have an error: E/RecyclerView: No adapter attached; skipping layout. Application works but when I want to start this particular fragment (maps fragment) it crashes or…
JorgulMaster
  • 1
  • 1
  • 3
0
votes
0 answers

WebSocketException on Android 9 when using firebase realtime database

I'm using the standard way to connect to firebase realtime database, using 16.1.0 version of the SDK. Problem: The connection is setup perfectly fine for devices below Android 9, but for devices running android 9 on mobile network, the firebase…
0
votes
0 answers

How can I prevent phone's screen from turning off while calling on Android pie (9) with ADB (or without, if possible)

I want to disable proximity sensor. My proximity sensor blinks during call and I don't want it to, so by disabling it, I hope this won't occur.
J.J.
  • 9
  • 1
0
votes
1 answer

How to check if the biometric scanner is available and initialized in Xamarin android BiometricPrompt

Failed biometric(fingerprint) scan attempts are handled by OnAuthenticationFailed() callback of BiometricPrompt.AuthenticationCallback class. The behavior I noticed is, it lets the user attempt 5 invalid fingerprint scans (each time the fail…
0
votes
1 answer

How to detect Samsung Galaxy Note 9 (Android P) navigation bar whether it's VISIBLE or NOT

I'm currently facing some problems on detection navigation bar on Android Pie (Note 9 device) whether it's VISIBLE or NOT VISIBLE. I have tried many many solutions on the internet such as: KeyCharacterMap.deviceHasKey(KeyEvent.KEYCODE_BACK) or…
Krot
  • 187
  • 3
  • 13