Top "Android-9.0-pie" questions

Android 9.0 Pie (API level 28), formerly known as "Android P".

USE_FINGERPRINT is deprecated in API level 28

Constant USE_FINGERPRINT was deprecated in API level 28 and we should use more generic USE_BIOMETRIC which has been added …

android android-permissions android-appcompat android-9.0-pie
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), …

android android-9.0-pie
Android P - 'SQLite: No Such Table Error' after copying database from assets

I have a database saved in my apps assets folder and I copy the database using the below code when …

android sqlite android-9.0-pie
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 …

java android kotlin android-9.0-pie
Determine if biometric hardware is present and the user has enrolled biometrics on Android P

I'm asked to show certain UI elements depending on the presence of biometric hardware. For Android 23-27 I use FingerprintManager#…

android biometrics android-9.0-pie
Android SDK 28 - versionCode in PackageInfo has been deprecated

I just upgraded my app's compileSdkVersion to 28 (Pie). I'm getting a compilation warning: warning: [deprecation] versionCode in PackageInfo has been …

java android android-9.0-pie package-info
Android Q: file.mkdirs() returns false

We have an app that uses external storage to store some temporary files: images, binary data. The code for that …

android android-9.0-pie
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 …

android android-fragments android-alertdialog android-9.0-pie
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 …

android android-wifi android-9.0-pie android-connectivitymanager networkinfo
What support library version should we use with targetSDK 28?

I was going through this article , it says to update your project's compileSdkVersion and targetSdkVersion to API 28 . So I did …

android android-sdk-tools android-9.0-pie