oneplusthree

OnePlus 3 & Oneplus 5 viewport size for chrome Emulated Devices

喜欢而已 提交于 2019-12-10 14:09:51
问题 I wanted to add OnePlus 3 and OnePlus 5 as custom devices in the emulated devices list of Google Chrome. Please provide the viewport size so that I can test my website with it. Example for pixel 2 display dimentions Thanks in Advance 回答1: I was searching for the same thing and I found this: https://www.mydevice.io/ OnePlus 5: 455x809 , pixel ratio 2.375 , user agent Mozilla/5.0 (Linux; Android 8.1.0; Build/OPM1.171019.011) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.158 Mobile

Foreground notification service not working in one plus devices

余生颓废 提交于 2019-12-10 11:29:46
问题 Below is the code for starting the foreground service. It is working fine for many devices like Samsung, moto, Vivo, Oppo and also with Android version nougat and oreo, but not working on One plus devices. Can anyone let me know if any extra changes or permission is required to run in One plus device or if any emulator supports one plus phones. public class ForegroundService extends Service { private Context ctx; private static final String PRIMARY_NOTIF_CHANNEL = "default"; @Override public

Foreground notification service not working in one plus devices

*爱你&永不变心* 提交于 2019-12-06 09:26:23
Below is the code for starting the foreground service. It is working fine for many devices like Samsung, moto, Vivo, Oppo and also with Android version nougat and oreo, but not working on One plus devices. Can anyone let me know if any extra changes or permission is required to run in One plus device or if any emulator supports one plus phones. public class ForegroundService extends Service { private Context ctx; private static final String PRIMARY_NOTIF_CHANNEL = "default"; @Override public void onCreate() { super.onCreate(); ctx = this; createNotificationService(); } private void

BLE Scan on android 8.0

心不动则不痛 提交于 2019-12-06 06:43:32
问题 I've developed an app that do ble scan for nearby devices (multiple kinds of beacons around). I am scanning using the BluetoothLeScanner with CALLBACK_TYPE_ALL_MATCHES and an empty ScanFilter array (since I want to get callbacks for all nearby devices). My app was working just fine on my OnePlus 5 device Android 7.x (and few other devices) - until I have upgraded to android 8.0 OTA on my device. I am not sure if it is Android 8.0 issue or OnePlus Oxygen bug but I face to following situation:

Screen overlay detected blocks Android permissions

拥有回忆 提交于 2019-11-27 03:53:37
I've noticed a strange issue with my Android app on my new phone. SDK 23 permission popups like external storage are blocked by the attached alert below. I initially thought this was related to my phone, but it doesn't seem to affect any of my other installed apps. Is this issue perhaps related to having a debug version installed, or is it something wrong with my permission handling? I thought it could somehow be related to one of the ad platforms I'm using but I tried disabling them and it still showed up I've pasted the image saving function that is generate this permission request below. I

Screen overlay detected blocks Android permissions

北慕城南 提交于 2019-11-26 12:41:13
问题 I\'ve noticed a strange issue with my Android app on my new phone. SDK 23 permission popups like external storage are blocked by the attached alert below. I initially thought this was related to my phone, but it doesn\'t seem to affect any of my other installed apps. Is this issue perhaps related to having a debug version installed, or is it something wrong with my permission handling? I thought it could somehow be related to one of the ad platforms I\'m using but I tried disabling them and