Questions tagged [android-8.0-oreo]
Android 8.0 Oreo (API level 26), formerly known as "Android O".
1,370
questions
0
votes
0
answers
7
views
StackOverflowError in Jetpack Compose for Accessibility crash for Android Oreo
We are seeing Android Oreo StackOverflowError crashes in crashlytics but just for Android 8 (Oreo) devices. It's for Accessibility in Jetpack Compose. I can't make sense of this. I don't see any ...
0
votes
1
answer
95
views
Сan't set custom sound and vibration for notifications on Android Oreo+
I can't set custom notification sound and vibration pattern for android oreo and above. For earlier versions of android everything works as it should. I wrote my code based on these answers:
Custom ...
0
votes
1
answer
180
views
Android app crashes in the API26 emulator - runs ok in API25 and 27
I have been updating my app and have been testing it in Android Studio emulators from API25 to API33. When I try to run it in an API26 emulator (Android 8.0) the app crashes immediately on launch, ...
0
votes
0
answers
18
views
AlarmManager didn't work in oreo and later
I used lots of method from alarmManager like
setRepeating, setInexactRepeating(),setExactAndAllowWhileIdle(),
also this too
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { manager....
3
votes
0
answers
129
views
Android: Change language android 8(o), Activity resources not updated while app in the background
action:sendBroadcast ACTION_LOCALE_CHANGED:
I registered the broadcast in the onCreate() for ACTION_LOCALE_CHANGED. Once broadcast receiver received and localeChanged() method will call.
To get the ...
1
vote
0
answers
287
views
How to Fix Keyboard Navigation Focus Down Getting Stuck in EditText on Android API 26+
The exact same APK behaves differently on Android versions before API 26 and after it. I have simplified my layout down to the following example:
<?xml version="1.0" encoding="utf-8&...
-1
votes
2
answers
102
views
Why did Google deprecate ProgressDialog class?
While browsing to find an alternative to PrgressDialog class I found this article and the writer mentioned this:
As we know Progress Dialog is depreciated in API level 26
because It prevents the user ...
0
votes
0
answers
144
views
Attach a View as Foreground Service On Oreo
I'm trying to update a foreground service where a layout appear in front of other apps like Facebook Messenger's talking head. It has no background service. The foreground service operates ...
1
vote
2
answers
6k
views
service crash with "Context.startForegroundService() did not then call Service.startForeground()"
Hello friends. I use this code inside the service for the pedometer service and I will
encounter the following error. Thank you for your help.
*error
android.app.RemoteServiceException: Context....
1
vote
1
answer
938
views
allow sound on default permission settings on android oreo and higher
I'm working on an android app where I need to display notifications to user.
The problem is the notification sound is not played. vibration is working fine though.
When check the app settings the '...
2
votes
0
answers
229
views
How move the app to the foreground when in the background on Android O?
In Android service, I wrote a code that moves the app to the foreground when it's in the background. But I knew that "getRunningTasks" were no longer used I'm curious how I should write it.
...
1
vote
1
answer
1k
views
How to run older then api 29 android emulator on M1 Mac (api 24, 25 builds don't work)
Desperately I need to test certain android versions and have M1 mac for some time. New versions of emulator runs super fast and I didn't realized there are any issues but now I tried build api 25 and ...
1
vote
1
answer
2k
views
Android update app badge count without push notification Android Oreo+
I want to update app icon badge count without push notifications(eg. Silent push). I simply want to update app badge count after reading any notifications inside the app similar to linkedIn, where its ...
0
votes
0
answers
125
views
Can't receive BOOT_COMPLETED action with receiver
I'm working on Android application, and I need to implement BootCompletedReceiver to restore my Alarm Manager / Work Manager state from previous boot. However, I am not able to receive the ...
1
vote
2
answers
328
views
CompanionDeviceManager without using an intent chooser and scanning
I already have mac addresses of the Bluetooth device that I need to connect to. I do not wish to ask for any location permission. when my app is launched I need to scan and connect to the Bluetooth ...
0
votes
1
answer
115
views
questions about Android Oreo build
I want to test something on Android Oreo now.
And I am building on Ubuntu-18.04, target is AVD.
Below is what I did.
$ sudo apt-get install git-core gnupg flex bison build-essential zip curl zlib1g-...
0
votes
1
answer
182
views
React Native APK not installing on Oreo
Recently I´ve created a new React Native App with the default.. basically everything. On the emulator, it works fine, but, when I try to install it on Android Oreo, it shows an "Application not ...
1
vote
1
answer
180
views
How to move activity from one display to another
Android started to support Multi-display from Android 8.0, The document described as below:
If an activity supports multi-window mode and is running on a device with multiple displays, users can move ...
4
votes
1
answer
1k
views
Unable to bind to service after moving to Android 11
I have two applications. One that is a foreground service that does not use any of the permissions introduced in Android 11 (camera, location etc). I have client apps that connect to my service. In ...
5
votes
1
answer
798
views
16: Skipping password saving since the user is likely prompted with Android Autofill
I am integrating google smart lock in my android application but in some devices i am getting this error when trying to save credentials to google. I am using following code to save credentials -
...
0
votes
0
answers
274
views
Android O: Notification Channel name localization
I'm facing similar problem mentioned here in this SO post. Have notification channel got created something like this,
NotificationChannel channel = new NotificationChannel(CHANNEL_ID_FOOBAR, ...
0
votes
1
answer
126
views
Why I cannot convert bitmap to .PNG and save it into storage in Android Oreo Device?
I want to convert android view to image file and save it to internal storage in Android Oreo device. But my following code is not working.
Here is XML code:-
<?xml version="1.0" encoding=&...
1
vote
1
answer
2k
views
What is the right way to turn an app into a system app under Android Oreo and above?
I have tried several methods to turn an app into a system app but even if in some case I managed to install the app inside /system/priv-app the app was not running as a system app as I could figure ...
1
vote
0
answers
51
views
Add launcher icon to homescreen on app install (without launch) - Pre and post oreo
I have seen on my device running Android 10 that few apps (which are not on playstore) add their launcher icon to homescreen just after install is complete (even without launching the app. I checked ...
1
vote
1
answer
924
views
Android Notification Timeout Listener
I did implement a notification feature in android using the Notification.Builder in Android OREO+. I need to cancel the notification after a certain time frame, if the user has not clicked on the ...
0
votes
1
answer
889
views
Android overlay window on API 26+, WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY vs TYPE_PHONE
I have an application which shows floating overlay windows and it works fine. It uses WindowManager.LayoutParams.TYPE_PHONE for the windows however and it says that it's deprecated on API level 26. ...
0
votes
1
answer
185
views
Unable to activate app as device admin on android oreo(API level 26)
When I try to activate my app as device admin an click Activate this device admin app, I am sent back to the previous screen and the device admin is not activated.
Receiver in manifes:
<receiver
...
1
vote
0
answers
412
views
Android native crash (tgKill) specific to Huawei with Android 8.0
In the Google Developer Console i see more and more crashes of my app coming from a tgkill+8 command.
The stack trace looks always like this:
#00 pc 000000000006a808 /system/lib64/libc.so (tgkill+...
2
votes
0
answers
396
views
Firebase - Push Notification not received when app is killed - Android 8
I want to develop application android 8 above, when my application is killed, i cant receive the notification. But, it works fine at android 7 below or application open or application at background.
...
4
votes
0
answers
419
views
Automatic ducking not working for text-to-speech (Android 8+)
As described in documentation, the automatic ducking feature has been introduced in Android 8.0. Ducking means that if your music application has been interrupted by some short sound (like a ...
2
votes
1
answer
487
views
On Android, before and while creating a new, large file, how can I know that will succeed without being out-of-storage?
Background
Suppose I'm about to create a large file (or even multiple of them), and yet I want to be sure I will succeed.
The problem
I was sure that to do it, I need to use either freeSpace or ...
6
votes
0
answers
472
views
How to set the timeout for CompanionDeviceManager.associate()?
To make a Companion Device association in Android for API 26+, we are supposed to call CompanionDeviceManager.associate(...)
If the system does not find any devices to pair with, it is supposed to ...
1
vote
1
answer
1k
views
How to catch user cancel in Companion Device Pairing screen?
In Android 8.0 and above, we may use the CompainonDeviceManager to pair out app with a bluetooth or wifi device. The android documentation tells us how to handle:
The happy path (i.e. the user ...
0
votes
1
answer
356
views
Intent Service running properly on android 9 when app is in background
I have an Intent service & a BroadcastReceiver.
As per background limitation on Android Oreo & above, the background applications(when an application is not foreground ) cannot use the started ...
1
vote
1
answer
2k
views
Notification Count not shown Badges in App Launcher Icon in Android Version 29 and 27
I want to show unread messages count on my android app's launcher icon. It should be cleared only once the user read all messages. I have tried setnumber() in NotificationCompat.Builder. But it is not ...
0
votes
2
answers
752
views
ClassNotFoundException on Android API 26 for MainActivity (working with API 30)
I have a Android Studio project which I tested on API 30 and is working fine. Now I tried running it on API 26 (which is the minimum SDK version I set for the project) and I can't get the app to start....
2
votes
1
answer
819
views
VibrationEffect doesn't change the amplitude of the vibes on my Galaxy S8
this is the code:
public class Vibrate extends AppCompatActivity {
long[] timings = {1000, 1000, 1000, 1000};
int[] amplitudes = {0, 5, 250, 5};
@Override
protected void onCreate(...
3
votes
0
answers
246
views
Android heads up notifications not work In huawei
In Huawei equipment, how to apply for banner notification permission, he is turned off by default
I made the following Settings, which only worked when I manually turned on the banner notifications
...
1
vote
0
answers
145
views
What does mean the "removeNotification for unknown key" warning from StatusBar on Android 8.1?
I have the following warning in my logcat on Oreo :
W StatusBar: removeNotification for unknown key: 0|com.mycompany.myapp|666|null|10061
What does this warning mean ?
What are the implications ?
...
1
vote
0
answers
26
views
Broadcastreceiver that should be triggered by an alarm remains untriggered
I wanted to set alarms that played audio files. Yet they don't, according to the log, the alarms are not executed. This is my code:
<manifest ...>
<uses-permission android:name="...
2
votes
1
answer
2k
views
Making a foreground service run until it's stopped
My goal is to have an app run in the background even if the screen is switched off. Like a music player.
Now everyone claims that you needed a foreground service for that. I am using a class extending ...
0
votes
1
answer
1k
views
Unity reward Ad not ready to be shown on android 9
I try to show Unity Ads rewarded placement through mediation on Android device, i figured out that its working on android 8 but when i test it on android 9 then UnityAds.isReady() always returns false....
0
votes
0
answers
34
views
Menu item color is not update for API <= 24 [duplicate]
I am updating menuItem color at runtime throughout my app. And, I have come across a weird issue where setting ForegroundColorSpan using SpannableString is not working for API <= 24 or Android 7.0 ...
12
votes
3
answers
8k
views
Android disconnects automatically from WiFi without internet below Android 10
Working on an android application in which I need to connect WiFi device programatically which does not have internet. Here is a code:
private void connectToWiFi(final String ssid, String ...
0
votes
1
answer
426
views
Unable to launch activity from FCM onMessageReceived when app is killed
I want to open an activity when a push notification is received from FCM to my Android Oreo. But it's not working. I have tried adding an HTTP call in onMessageReceived method and that works as ...
9
votes
1
answer
8k
views
Android foreground service consistently throws "java.lang.IllegalArgumentException: Service not registered" exception
My project requires an android foreground service to run continuously (even after the application is destroyed). To this effect I have the following code snippets:
build.gradle
implementation ...
0
votes
0
answers
114
views
Why "App is running" (On Going notification) not dismissing automatically in case of "no use" (Android 8.0+)?
I have foreground Service for Android 8.0 and above. And it is working fine.
But,
Notification is not dismissing automatically even if App is removed from recent (see image). And in that case App ...
0
votes
1
answer
642
views
resultcode = 0 camera intent with extra_output on android 8
I am trying to take a picture with my app using the camera intent and EXTRA_OUTPUT. This works fine for android 10 and 9 (though I use a slightly different approach for 10), however when I try to run ...
0
votes
1
answer
417
views
Android AMR-WB encoding issue
I am trying to use AMR-WB encoding feature of Android Oreo to encode live microphone capture PCM using AudioRecorder. The encoding works without any exception but the encoded voice data seems not ...
2
votes
2
answers
239
views
Android SetRequestRotation flips Activity landscape to portrait when auto rotate enabled
I am trying to setRequestOrientation to a portrait but Activity rotates to landscape and set to portrait when auto-rotate enabled.
The Activity will support both landscape and portrait mode.
The ...