google-pixel

java.lang.IllegalStateException: SharedPreferences in credential encrypted storage are not available until after user is unlocked

戏子无情 提交于 2020-06-28 06:22:55
问题 Crashes are not getting logged in cashlytics on Google Pixel devices(OS 9.0-pie) and Playstore reports ANR&Crashes as java.lang.IllegalStateException: SharedPreferences in credential encrypted storage are not available until after user is unlocked It is happening while initializing Fabric.with(this, new Crashlytics()), It is also observed that the IllegalStateException is thrown on restart of device and application is registered for LOCKED_BOOT_COMPLETED & BOOT_COMPLETED broadcast intents E

Push notification issue in Oreo 8.0

泄露秘密 提交于 2019-12-24 10:23:12
问题 After updating the app to 8.1 the notification was not shown and I fixed it. Now, pending intent is not working as expected. After receiving the notification, I am not able to navigate to the app if it is in background and if it is closed it is not launching. private void sendNotify(String messageBody) { Intent intent = new Intent(); intent.setAction(Constants.NOTIFY); intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); int uniqueId = (int) System.currentTimeMillis(); Uri defaultSoundUri =

Media Query to differentiate Google Pixel 1/2 vs Google Pixel XL vs Google Pixel 2 XL

╄→尐↘猪︶ㄣ 提交于 2019-12-24 05:43:13
问题 Im writing a cordova app and need to isolate these google phones to adjust styling given this: Im struggling to differentiate between any of the Google Pixel Phones. @media only screen and (min-width: 411px) and (max-width: 731px) { .myDiv{ background-color: blue; } } this triggers on all Pixels - both in emulators and physical devices @media only screen and (min-width: 411px) and (-webkit-device-pixel-ratio: 3) { .myDiv{ background-color: blue; } } this does not trigger at all with any pixel

Instant Apps not working on any Pixel XL devices

馋奶兔 提交于 2019-12-11 10:57:53
问题 I've built and published an instant app for my company but it doesn't work on my own Pixel XL, my wife's Pixel XL, my manager's Pixel XL, or his girlfriend's Pixel XL. We see the instant app "speed bump" window (its just blank with spinner) popup very very briefly for under half a second then it offloads to the website. All of our phones properly identify buzzfeed tasty as an instant app in Google search but the behavior is the same. We have tried a number of different known instant apps and

How to prevent Screen Orientation change when Activity finishes on Android 8.1 Version Devices?

ε祈祈猫儿з 提交于 2019-12-10 12:35:38
问题 I'm working on an app and encountered a strange behavior on 8.1 Devices (Pixel2, Nexus5x), so I wrote a small App to verify this behavior. MainActivity is locked to portrait mode while LandscapeActivity is locked to landscape . MainActivity starts the LandscapeActivity for Result. Screen Switches from portrait to landscape as expected. When LandscapeActivity is finished it propagates the Result to MainActivity , while switching back to portrait (as expected). But Sometimes I encounter kind of

How can I get the Google Pixel 3 emulator in Android Studio?

狂风中的少年 提交于 2019-12-04 16:12:40
问题 I'm currently running the latest version of Android Studio, v3.2.1. The virtual devices available only go up to the Pixel 2 (and the XL version). These do not suffice since I mainly need to test on the new Google Pixel 3 XL, due to its notch. Is it possible to get the new Pixel 3 (and XL version) loaded into Android Studio's emulators for testing? 回答1: To add a notch in the emulator, choose any device with Android Pie system image (9.0). Build it, then go to Settings > System > expand

How can I get the Google Pixel 3 emulator in Android Studio?

强颜欢笑 提交于 2019-12-03 09:26:12
I'm currently running the latest version of Android Studio, v3.2.1. The virtual devices available only go up to the Pixel 2 (and the XL version). These do not suffice since I mainly need to test on the new Google Pixel 3 XL, due to its notch. Is it possible to get the new Pixel 3 (and XL version) loaded into Android Studio's emulators for testing? Mohamed Saber To add a notch in the emulator, choose any device with Android Pie system image (9.0). Build it, then go to Settings > System > expand 'Advanced' > Developer options > 'Drawing' section > 'Simulate a display with a cutout' on the