android-9.0-pie

setRotationY(180) on recyclerview or viewpager creating scroll issue in Android 9(API 28)

我是研究僧i 提交于 2019-12-04 05:18:18
问题 I am managing RTL contents by implementing setRotationY for recyclerview and viewpagers but it seems that it is creating scroll/swipe issues in only devices with API 28 otherwise it is working perfectly fine. It is working perfectly fine if I remove setRotationY. Has anyone faced this issue? If so, how to solve it? P.S. : Rotating 360f is not affecting the scroll but rotation 180f does. 回答1: You can also use the layoutDirection in your recyclerview or viewpager like: <android.support.v4.view

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

一个人想着一个人 提交于 2019-12-03 08:50:45
问题 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 the foreground service -> override fun onCreate() { super.onCreate() val notification: Notification = NotificationCompat.Builder(this, packageName) .setSmallIcon(R.drawable.status_notification_icon) .setContentTitle(getString(R.string.ongoing_notify

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

不想你离开。 提交于 2019-12-02 22:51:27
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 the foreground service -> override fun onCreate() { super.onCreate() val notification: Notification = NotificationCompat.Builder(this, packageName) .setSmallIcon(R.drawable.status_notification_icon) .setContentTitle(getString(R.string.ongoing_notify_temp_title)) .setContentText(getString(R.string.ongoing_notify_temp_message)) .setGroup(AppConstants

API call in Android 9 configuration devices and emulator shows connection error

▼魔方 西西 提交于 2019-12-02 21:44:22
问题 I am using Android 9 emulator, it has internet connection from system and I have added internet permission in manifest. When I try to call api it shows error message as : connection error . 回答1: As piyush commented in my question the answer is to add android:usesCleartextTraffic="true" in manifest file with in application tag <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="com

Views not loading after updating device to Android Pie 9.0

馋奶兔 提交于 2019-12-02 10:09:38
I recently updated my phone to Android 9.0. The app which I was developing was working fine in earlier Android version. But after the update some views which require internet are not loading. Blank spaces are being displayed in their places. It has a ViewPager as banner and 2 RecyclerView below categories and deals respectively. They all require internet to load data. I don't know know if any extra permissions or dependencies are required in Android Pie. The logs show NetworkDispatcher.run: Unhandled exception java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang

setRotationY(180) on recyclerview or viewpager creating scroll issue in Android 9(API 28)

巧了我就是萌 提交于 2019-12-02 06:54:28
I am managing RTL contents by implementing setRotationY for recyclerview and viewpagers but it seems that it is creating scroll/swipe issues in only devices with API 28 otherwise it is working perfectly fine. It is working perfectly fine if I remove setRotationY. Has anyone faced this issue? If so, how to solve it? P.S. : Rotating 360f is not affecting the scroll but rotation 180f does. You can also use the layoutDirection in your recyclerview or viewpager like: <android.support.v4.view.ViewPager android:id="@+id/view_pager" android:layout_width="match_parent" android:layout_height="match

Android P without TLS: network-security-config: cleartextTrafficPermitted not possible for IP (only domain)

拈花ヽ惹草 提交于 2019-12-02 02:02:48
问题 I'm trying to connect to an embedded device with an HTTP-server which works fine on android < P (until I set targetSdkVersion 28 ) because there was a change that Network TLS enabled by default. There is a way to Opt out of cleartext traffic but it seems that this is only possible for domains and not IP addresses . I've tried to set a android:networkSecurityConfig in the Manifest with the IP instead of the domain but this didn't work: <network-security-config> <domain-config

Android Notification Channel sounds stop working when using sound URIs that reference resource ids

ぐ巨炮叔叔 提交于 2019-12-01 23:09:45
问题 We have created notification channels for devices running on Oreo and above, that use a custom notification sound that is located in our /res/raw folder. Recently, when users upgraded our app, the notification sound just stopped working and the notification only vibrates the device. We have confirmed that uninstall/reinstall or clearing app data resolves the issue. However, in order to get notification sounds to work for everyone again without having to reinstall, we need to essentially

Android SDK 28 - versionCode in PackageInfo has been deprecated

ε祈祈猫儿з 提交于 2019-12-01 14:59:05
I just upgraded my app's compileSdkVersion to 28 (Pie). I'm getting a compilation warning: warning: [deprecation] versionCode in PackageInfo has been deprecated The warning is coming from this code: final PackageInfo info = context.getPackageManager().getPackageInfo(context.getPackageName(), 0); int versionCode = info.versionCode; I looked at the documentation , but it doesn't say anything about how to resolve this issue or what should be used instead of the deprecated field. It says what to do on the Java doc (I recommend not using the Kotlin documentation for much; it's not really maintained

Android SDK 28 - versionCode in PackageInfo has been deprecated

Deadly 提交于 2019-11-30 21:40:59
问题 I just upgraded my app's compileSdkVersion to 28 (Pie). I'm getting a compilation warning: warning: [deprecation] versionCode in PackageInfo has been deprecated The warning is coming from this code: final PackageInfo info = context.getPackageManager().getPackageInfo(context.getPackageName(), 0); int versionCode = info.versionCode; I looked at the documentation, but it doesn't say anything about how to resolve this issue or what should be used instead of the deprecated field. 回答1: It says what