android-8.1-oreo

Can't find Android 8.0-8.1 (Oreo) API 26-27 ARM System Images

前提是你 提交于 2019-12-02 20:17:14
Are there anywhere Android 8.0 (Oreo) API 26 and Android 8.1 (Oreo) API 27 ARM System images (ARM, not x86 Intel) for AVD Manager? Thanks. Unofficial? Beta? Alpha? Any? You should build Android sources for specific platform by yourself The ARM images for API 26 and 27 are not available yet. ARM images available till API 25 only. Note: Google recommended an x86 system image on an x86 host for better emulation performance. Recent updates enabled computers with AMD processors to run Android Emulator and you don't need to install ARM images anymore. Taken from the Android Developers blog: If you

Android Oreo: Keep started background service alive without setting it foreground (but with a notification)?

穿精又带淫゛_ 提交于 2019-12-01 18:27:26
问题 I am working on a media app. I wonder how I can keep some old behavior my app has prior to Oreo, for example, have the notification and the service (for playback) hang in there even if the service is no longer set to foreground. We call startService(MediaPlaybackService.class) to start the service when playback starts, then create a notification and call startForeground() with it on the service. So far so good - if user exits the app, user will still have media play in the background and can

Android Oreo: Keep started background service alive without setting it foreground (but with a notification)?

☆樱花仙子☆ 提交于 2019-12-01 18:07:14
I am working on a media app. I wonder how I can keep some old behavior my app has prior to Oreo, for example, have the notification and the service (for playback) hang in there even if the service is no longer set to foreground. We call startService(MediaPlaybackService.class) to start the service when playback starts, then create a notification and call startForeground() with it on the service. So far so good - if user exits the app, user will still have media play in the background and can control the playback from the notification. When user pauses playback, we call stopForeground(false) to

Oreo: Broadcast receiver Not working

允我心安 提交于 2019-11-30 17:54:37
问题 I was trying to get notification trigger on my application whenever the user makes a new call. I'm registering receiver in my activity and destroying it in onDestroy() method. Following is the code snippets for registering registerReceiver(inComingCall = new IncomingCall(),new IntentFilter("android.intent.action.PHONE_STATE")); The issue I'm facing is I'm not getting any trigger in override onReceive() method for the Broadcast receiver. Kindly let me know whether any new implementations or

Service not starting on Oreo in app widget using PendingIntent

断了今生、忘了曾经 提交于 2019-11-30 13:44:31
问题 I'm using Android app widgets. I'm creating a PendingIntent object and use it in the method RemoteViews#setOnClickPendingIntent() . This is the pending intent: // The below code is called in the onUpdate(Context, AppWidgetManager, int[]) method of the AppWidgetProvider class. // Explicit intent Intent intent = new Intent(context, MyService.class); intent.setAction(MY_ACTION); intent.putExtra(EXTRA_KEY, VALUE); // Create the pending intent PendingIntent pendingIntent = PendingIntent.getService

Toasts overlap issue on Oreo (8.1)

若如初见. 提交于 2019-11-30 12:15:08
I have a problem with toasts. For API 26 and below toasts are displayed properly (next toast is waiting for previous to disappear) but on Android 8.1 (API 27) they are covering each other. I have notification channel set up like this: if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) { NotificationChannel notificationChannel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, NOTIFICATION_CHANNEL_NAME, NotificationManager.IMPORTANCE_DEFAULT); notificationManager.createNotificationChannel(notificationChannel); builder.setChannelId(NOTIFICATION_CHANNEL_ID); } This fixes

ForegroundService on android Oreo gets killed

杀马特。学长 韩版系。学妹 提交于 2019-11-29 12:54:19
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 I've implemented a simple Foreground Service like the below which while started it shows an ongoing

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

落花浮王杯 提交于 2019-11-28 23:49:59
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 contact book and it works perfect for Lollipop, Marshmallow, Nougat, etc but it will gives me the error for Oreo like this please help me. My code is here below. Demo Code :- private void loadContacts() { contactAsync = new ContactLoaderAsync(); contactAsync.execute(); } private class ContactLoaderAsync extends AsyncTask<Void, Void, Void> { private

BLE scan is not working when screen is off on Android 8.1.0

你离开我真会死。 提交于 2019-11-28 18:47:37
I am using pixel with latest android 8.1.0 update. I am facing issue related to BLE advertisement scanning. Whenever I turned off the screen(i.e power button press) my scanning will stop. it will restart immediately after turn on the screen. I have checked latest code for BLE. google newly introduce this feature ( Reference Link ). Is there any way to skip this part, I mean scan should not stop regardless of the screen on or off. As of Android 8.1, unfiltered bluetooth scans are blocked when the screen is turned off. While it is surprising for such a dramatic change to be made in a minor

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

吃可爱长大的小学妹 提交于 2019-11-27 21:25:05
问题 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 contact book and it works perfect for Lollipop, Marshmallow, Nougat, etc but it will gives me the error for Oreo like this please help me. My code is here below. Demo Code :- private void loadContacts() { contactAsync = new ContactLoaderAsync();