android-8.0-oreo

Oreo: disable Activity transition animation

落爺英雄遲暮 提交于 2020-01-01 10:35:07
问题 I need to disable Activity transition animation for all the screens in my application. Previous solution worked fine for all Android version: <style name="base_theme" parent="Theme.AppCompat.Light.NoActionBar"> <item name="android:windowAnimationStyle">@null</item> </style> ... but for Android 8 "Oreo" it cause black screen blinking for every transition (forward or back move). I.e. there is still no any animation, but very annoying blinking take place (90% chance, ~20-30 milliseconds, the

Android O issues with WiFi Peer Discovery

China☆狼群 提交于 2020-01-01 10:06:22
问题 I am developing an Android Application that employs WiFi (Direct) for service discovery and P2P peer discovery/connection. My development enviromment is as follows:- Android Studio 3.0 Beta 4 Build #AI-171.4304935, built on August 29, 2017 JRE: 1.8.0_152-release-915-b01 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Mac OS X 10.11.6 My Gradle build:- apply plugin: 'com.android.application' apply plugin: 'realm-android' android { compileSdkVersion 26 buildToolsVersion "26.0.1"

Android O issues with WiFi Peer Discovery

ぐ巨炮叔叔 提交于 2020-01-01 10:06:11
问题 I am developing an Android Application that employs WiFi (Direct) for service discovery and P2P peer discovery/connection. My development enviromment is as follows:- Android Studio 3.0 Beta 4 Build #AI-171.4304935, built on August 29, 2017 JRE: 1.8.0_152-release-915-b01 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Mac OS X 10.11.6 My Gradle build:- apply plugin: 'com.android.application' apply plugin: 'realm-android' android { compileSdkVersion 26 buildToolsVersion "26.0.1"

A notification of the foreground service doesn't show on Android 8.+

假如想象 提交于 2019-12-31 04:58:08
问题 My foreground service doesn't show a notification when it works on Android Oreo. It works perfectly on Android versions from 15 to 25. When I do targetSdkVersion from 26 to 25 this issue disappears. But this solution seems not good. I prepared test project with this issue. What should I do for fixing it on Android Oreo with targetSdkVersion 26 ? My foreground service, SoundService.java(full source): public class SoundService extends Service implements MediaPlayer.OnErrorListener, MediaPlayer

Google Analytics service Intent crashes on Android Oreo

梦想与她 提交于 2019-12-30 16:25:27
问题 I have upgraded my app to support SDK 26 and now Google Analytics causes crashes when running on Android Oreo: Fatal Exception: java.lang.RuntimeException: Unable to start receiver com.google.android.gms.analytics.AnalyticsReceiver: java.lang.IllegalStateException: Not allowed to start service Intent { act=com.google.android.gms.analytics.ANALYTICS_DISPATCH cmp=com.example.android/com.google.android.gms.analytics.AnalyticsService }: app is in background uid UidRecord{3f302e5 u0a107 RCVR idle

interactive ussd session(multi step) does not work on android 8(Oreo)

杀马特。学长 韩版系。学妹 提交于 2019-12-29 21:06:04
问题 I am currently working with Telephony Manager(USSD response) available in android api level 26(Nexus 6P). For single step ussd session, it's working. reference: http://codedrago.com/q/140674/android-telephony-telephonymanager-ussd-android-8-0-oreo-does-android-8-0-api-26-support-sending-and-repying-to-ussd-messages example: USSD request : "A" (ussd session initiates) USSD response : "X" (ussd session terminates) TelephonyManager = telephonyManager(TelephonyManager)getSystemService(Context

interactive ussd session(multi step) does not work on android 8(Oreo)

点点圈 提交于 2019-12-29 21:00:37
问题 I am currently working with Telephony Manager(USSD response) available in android api level 26(Nexus 6P). For single step ussd session, it's working. reference: http://codedrago.com/q/140674/android-telephony-telephonymanager-ussd-android-8-0-oreo-does-android-8-0-api-26-support-sending-and-repying-to-ussd-messages example: USSD request : "A" (ussd session initiates) USSD response : "X" (ussd session terminates) TelephonyManager = telephonyManager(TelephonyManager)getSystemService(Context

ForegroundService on android Oreo gets killed

强颜欢笑 提交于 2019-12-29 08:24:32
问题 I'm trying to build up a service which requests the device location every minute. I need this to work in background even when the application is closed. So far I managed to make it work on devices which has a pre-Oreo android OS but now I'm testing the service on android Oreo device and is not working when I close or put the application in background. In my research I found that for Oreo devices a Foreground Service with an ongoing notification should be used to achieve this so to start with

ForegroundService on android Oreo gets killed

烈酒焚心 提交于 2019-12-29 08:24:11
问题 I'm trying to build up a service which requests the device location every minute. I need this to work in background even when the application is closed. So far I managed to make it work on devices which has a pre-Oreo android OS but now I'm testing the service on android Oreo device and is not working when I close or put the application in background. In my research I found that for Oreo devices a Foreground Service with an ongoing notification should be used to achieve this so to start with

Intent.ACTION_SEND not working on Oreo [duplicate]

时间秒杀一切 提交于 2019-12-29 00:49:07
问题 This question already has answers here : android.os.FileUriExposedException: file:///storage/emulated/0/test.txt exposed beyond app through Intent.getData() (24 answers) Closed last year . I am developing a custom camera application which captures a picture and stores it in the gallery. When I share that image using Intent.ACTION_SEND, it works absolutely fine on all devices except for devices having API 26, i.e. OREO. My code to share the image is: Intent shareIntent = new Intent();