android-9.0-pie

How can I enforce internet connection only through wifi?

给你一囗甜甜゛ 提交于 2019-12-13 10:33:07
问题 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. Because when i connect to device i getting error message like this: wi-fi has no internet acces. And requests continue on mobile data. So app can't talk with device. Can i doing something about this problem? 回答1: I guess this is related to permissions

Exported SQLite database is not up to date

徘徊边缘 提交于 2019-12-13 03:47:06
问题 This issue only applies to an SDK 28 device (emulator). My SQLite database created with SQLiteOpenHelper works perfectly in the app, however when I export it to a disk (either by means of Android studio or by the code), much of its data is lost. Changes made to this database in the app are immediately reflected in the app but are not reflected in the exported database file. The database file that I am trying to export is located here: DDMS -> file explorer -> data -> data -> my package name -

PeriodicWorkRequest is not initiating by WorkManager on realtime devices except emulator

廉价感情. 提交于 2019-12-13 03:10:40
问题 I am enqueuing a PeriodicWorkRequest through WorkManager , the code mentioned below is working on device having Android OS Nougat also on emulators of Android OS versions 8.1, 9 & 10 but not on OnePlus (Android 9), Redmi 5 (Android 8.1) & Google Pixel (Android 9.1). The dependency I have incorporated is, implementation "android.arch.work:work-runtime:1.0.1" (Non Androidx) Also implementation "android.arch.work:work-runtime:2.1.0-beta02" (Androidx) Code snippet, PeriodicWorkRequest.Builder

Android 9 (Pie) - Not able to capture any api (native / web) through network monitoring tools such Charles proxy and Fiddler

心已入冬 提交于 2019-12-13 02:49:55
问题 I am trying to capture apis triggered from native app and website through Charles proxy / Fiddler , But I am not able to see any api there. I have set manual proxy as well. I am able to see apis for Android 8 and below . But not working for Android 9 . In Android 9 , I could the screens getting loaded completely , but still I am not able to see the apis in any monitor. 回答1: Add android:usesCleartextTraffic="true" in AndroidManifest.xml <manifest xmlns:android="http://schemas.android.com/apk

Display dialog from Input Method Service in Android 9 (Android Pie)

本小妞迷上赌 提交于 2019-12-11 18:06:50
问题 My app includes an Input Method Service with a special button that brings up a dialog. For users with Android 9, this dialog is not displayed correctly, only the part above the IME is visible: The code to create the dialog is AlertDialog dialog = builder.create(); Window window = dialog.getWindow(); WindowManager.LayoutParams lp = window.getAttributes(); LatinKeyboardView inputView = mKeyboardSwitcher.getInputView(); lp.token = inputView.getWindowToken(); lp.type = WindowManager.LayoutParams

Google Play Console - Crash Report: java.lang.RuntimeException

家住魔仙堡 提交于 2019-12-11 17:13:52
问题 I received some crash reports from users of one of my apps in the Google Play Store. This is the stack that I find the play store: java.lang.RuntimeException: at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2946) at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3081) at android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:78) at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor

startActvtiy in Doze mode on Android Pie

拈花ヽ惹草 提交于 2019-12-11 15:56:16
问题 I am developing a VoIP calling App. everything is fine on prior to Android Pie. On When device is in Doze (Deep Sleep) mode it received FCM and starts rising but it does not show the call Activity. How can I Show Activity on Lock Screen in Doze mode on Pie ?? I am using following Flags in my call Activity. getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED | WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD | WindowManager.LayoutParams.FLAG_FULLSCREEN | WindowManager

Keystore getEntry returns NULL on Android 9

佐手、 提交于 2019-12-11 15:35:34
问题 cI have encrypted and decrypted a login password which is stored in the Android Keystore. On Android 9, I observed that the app crashes when trying to decrypt the password(I am not able to reproduce it but people having Pixel 3 are one of the devices with crash). Below is how I am decrypting the password from the keystore. private static final String TRANSFORMATION = "AES/GCM/NoPadding"; private static final String ANDROID_KEY_STORE = "AndroidKeyStore"; private KeyStore keyStore; public

Data not showing on Android Pie 9.0

☆樱花仙子☆ 提交于 2019-12-11 12:03:22
问题 After I updated my phone from Android Oreo 8.0 to Android Pie 9.0, I no longer can get data from MySQL database using HttpUrlConnection. I try with emulator Android Oreo 8.0 and the data is displayed. However, when I try with emulator Android Pie 9.0, the data is not displayed. Please help me. 回答1: I Recently had the same issue for Android 9, but I had to use some URLs for different screens. So I added android:usesCleartextTraffic="true" to Manifest and it worked, but we didn't want to

Custom Keyboard not working on Android P Beta

心不动则不痛 提交于 2019-12-11 08:26:15
问题 When I try to use Custom Keyboard got an exception on Android P Beta, everything is working fine until Android Oreo but recently got a crash. Just try to figure out which class might be responsible for the exception. Currently unable to access complete custom keyboard code so not posting the code. java.lang.IllegalArgumentException: Invalid Region.Op - only INTERSECT and DIFFERENCE are allowed at android.graphics.Canvas.checkValidClipOp(Canvas.java:779) at android.graphics.Canvas.clipRect