Questions tagged [android-8.0-oreo]

Android 8.0 Oreo (API level 26), formerly known as "Android O".

Android 8.0 is tag lined as Smarter, faster, more powerful and sweeter than ever. The world's favourite cookie is your new favourite Android release.

This new version has plenty of changes in store, ranging from revamped looks to under-the-hood improvements, so there's tons of cool new stuff to explore.

Some of the new and exiting features are listed below.

  • Redesigned Settings Menu
  • Revamped File Manager
  • Battery-Saving Background Restrictions
  • Snooze Individual Notifications
  • Fingerprint Scanner Gestures
  • Turn on Wi-Fi Automatically
  • More Granular Storage Controls
  • Picture-in-Picture Mode
  • New Battery Menu
  • Autofill Framework
  • Notification Channels
  • Adaptive Icons
  • Pixel Launcher App Drawer Improvements
  • Notification Badges on the Home Screen
  • Smart Text Selection
  • New Emojis
  • Downloadable fonts
  • Fonts in XML
  • Autosizing TextView
  • Multi-display support

Visit official documentation for more info

1370 questions
471
votes
18 answers

Android 8.0: java.lang.IllegalStateException: Not allowed to start service Intent

On application launch, app starts the service that should to do some network task. After targeting API level 26, my application fails to start service on Android 8.0 on background. Caused by: java.lang.IllegalStateException: Not allowed to start …
phnmnn
  • 12,813
  • 11
  • 47
  • 64
383
votes
34 answers

Context.startForegroundService() did not then call Service.startForeground()

I am using Service Class on the Android O OS. I plan to use the Service in the background. The Android documentation states that If your app targets API level 26 or higher, the system imposes restrictions on using or creating background services…
NiceGuy
  • 3,866
  • 2
  • 9
  • 10
255
votes
36 answers

java.lang.IllegalStateException: Only fullscreen opaque activities can request orientation

I am facing the problem while retrieving the contacts from the contact book in Android 8.0 Oreo java.lang.IllegalStateException: Only fullscreen opaque activities can request orientation I am trying to get the contact in my activity from the phone…
Shubham Sejpal
  • 3,556
  • 2
  • 14
  • 31
193
votes
24 answers

Notification not showing in Oreo

Normal Notification Builder doesn't show notifications on Android O. How could I show notification on Android 8 Oreo? Is there any new piece of code to add for showing notification on Android O?
amorenew
  • 10,760
  • 10
  • 47
  • 69
148
votes
7 answers

"Not enough information to infer parameter T" with Kotlin and Android

I'm trying to replicate the following ListView in my Android app using Kotlin: https://github.com/bidrohi/KotlinListView. Unfortunately I'm getting an error I'm unable to resolve myself. Here's my code: MainActivity.kt: override fun…
Timo Güntner
  • 2,863
  • 4
  • 17
  • 24
105
votes
8 answers

Android 8.0 Oreo crash on focusing TextInputEditText

After updating some of our devices to android 8.0 , upon focusing on a TextInputEditText field inside of a TextInputLayout, the app crashes with this Exception: Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method…
79
votes
3 answers

Unable to resume activity with java.lang.IllegalArgumentException on Android api >=24

There is a crash in my app on devices running version 7.0, 7.1.1 and 8.0.0 with the following stacktrace: Fatal Exception: java.lang.RuntimeException: Unable to resume activity {xxx/xxx.views.activities.HomeActivity}:…
Jiyeh
  • 5,187
  • 2
  • 30
  • 31
65
votes
9 answers

Android vibrate is deprecated. How to use VibrationEffect in Android>= API 26?

I am using Android's VIBRATOR_SERVICE to give a haptic feedback for a button touch. ((Vibrator) getSystemService(VIBRATOR_SERVICE)).vibrate(300); Android Studio give me warning that method vibrate(interval) is deprecated I should use…
Hitesh Sahu
  • 41,955
  • 17
  • 205
  • 154
59
votes
6 answers

Setting up Gradle for api 26 (Android)

Since I have upgraded my Nexus 5x to Android O DP3 I am not able to test my applications. I get the error for not having configured my Gradle-file to work with the new API-level (26). So I changed this and the dependencies, but I keep getting errors…
54
votes
12 answers

Autosizing of TextView doesn't work (Android O)

I use new autosize feature added in support library 26. I read a documentation which can be found here : https://developer.android.com/preview/features/autosizing-textview.html I suppose that it should work this way: You can enable auto-sizing with…
52
votes
3 answers

Firebase: How to set default notification channel in Android app?

How to set default notification channel for notification messages that come when an app is in the background? By default, these messages use "Miscellaneous" channel.
52
votes
3 answers

NotificationChannel issue in Android O

I am getting a toast saying "Developer warning for package com.google.android.apps.messaging" when sending an MMS using Android Messages ver 2.3.063. In logs 08-12 16:57:52.368 7661 7682 W Notification: Use of stream types is deprecated for…
Shabbir Panjesha
  • 1,851
  • 5
  • 20
  • 29
52
votes
2 answers

How to make adb shell ps list all processes in Android O?

adb shell ps not working in O android release adb shell ps command in Android O release is listing only ps process information, but it is not listing all the processes information of all the process like it used to do it in earlier android…
be_good_do_good
  • 4,311
  • 3
  • 28
  • 42
47
votes
7 answers

Launcher Icon is not Shown in Oreo 8.0/8.1

Explanation: I have a working app in google play market. Everything works fine in android versions from 4.0-7.0. Case: When the client downloaded it on his Android 8.0 (Oreo) a launcher icon did not seem to show instead android's default…
Zafar Kurbonov
  • 2,077
  • 4
  • 19
  • 42
47
votes
8 answers

Failed to post notification on channel "null" Target Api is 26

Two log showing 1: Use of stream types is deprecated for operations other than volume control 2: See the documentation of setSound() for what to use instead with android.media.AudioAttributes to qualify your playback use case
Mohit Singh
  • 1,402
  • 1
  • 10
  • 19
1
2 3
91 92