android-8.0-oreo

NotificationChannel issue in Android O

China☆狼群 提交于 2019-11-30 07:52:13
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 operations other than volume control 08-12 16:57:52.368 7661 7682 W Notification: See the documentation of setSound() for what to use instead with android.media.AudioAttributes to qualify your playback use case 08-12 16:57:52.369 1604 3146 E NotificationService: No Channel found for pkg=com.google.android.apps.messaging, channelId=miscellaneous, id=5, tag

Android 8 requires READ_PHONE_STATE when calling SmsManager.sendTextMessage()

一曲冷凌霜 提交于 2019-11-30 04:43:01
My application can't send sms on new android 8 update. I get error that I don't have READ_PHONE_STATE permission. java.lang.SecurityException: Neither user 10179 nor current process has android.permission.READ_PHONE_STATE. at android.os.Parcel.readException(Parcel.java:1942) at android.os.Parcel.readException(Parcel.java:1888) at com.android.internal.telephony.ISms$Stub$Proxy.sendTextForSubscriber(ISms.java:789) at android.telephony.SmsManager.sendTextMessageInternal(SmsManager.java:329) at android.telephony.SmsManager.sendTextMessage(SmsManager.java:312) at com.cordova.plugins.sms.Sms.send

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

北城余情 提交于 2019-11-30 03:30:56
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.TELEPHONY_SERVICE); Handler handler = new Handler(); TelephonyManager.UssdResponseCallback callback = new

Background execution not allowed. Android O pendingintent

牧云@^-^@ 提交于 2019-11-30 03:24:46
问题 I have a service that schedules a pendingintent which starts my notification. However, since Android O I am getting this error. I did some research, and stumbled upon context.registerReceiver , but that does not seem to fix the problem. Error: W/BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:my.great.package flg=0x4000010 (has extras) } to com.google.android.googlequicksearchbox/com.google.android.apps.gsa

Background execution not allowed receiving intent BOOT_COMPLETED

南楼画角 提交于 2019-11-30 01:24:17
问题 I've read about Android Oreo background execution limitations, and it clearly states that BOOT_COMPLETED broadcast is unaffected, but I can't get it to work on Android Oreo. First, I am compiling against SDK 27. Secondly, I declared the receiver inside the manifest file: <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> <receiver android:name="helpers.StartDetectionAtBoot" android:label="StartDetectionAtBoot" android:enabled="true" android:exported="true"> <intent

Failed to post notification on channel “null” Target Api is 26

最后都变了- 提交于 2019-11-29 22:53:59
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 When you target Android 8.0 (API level 26), you must implement one or more notification channels to display notifications to your users. int NOTIFICATION_ID = 234; NotificationManager notificationManager = (NotificationManager) ctx.getSystemService(Context.NOTIFICATION_SERVICE); if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) { String CHANNEL_ID

How to use Calligraphy with multi-language support Oreo

你说的曾经没有我的故事 提交于 2019-11-29 21:18:41
问题 I'm developing an app that need to support multiple languages and if the language is RTL I have to apply a custom font. For the requirement I have created my Class that extends Application . Everything was perfect till I got Oreo version device (Before I have Marshmellow enabled device). In Oreo if we want to change the language we have to create a custom ContextWrapper class, here problem come in. To use Calligraphy we need to Override the attachBaseContext method. And To change language we

tgkill - native error on Android 8.0 Samsung S8

空扰寡人 提交于 2019-11-29 17:23:00
问题 Recently I started getting Android native crashes (reported in Google Play vitals). They happen only on Samsung Galaxy S8 or S8+ phones with Android 8. According to the stack trace it is related to the UI renderer thread. However I don't know how to fix it or even where exactly in the app does it happen. Any idea how to find out where in the app does this happen? And why only Galaxy S8 with Android 8 are affected? Thanks. backtrace: #00 pc 0000000000071854 /system/lib64/libc.so (tgkill+8) #01

Why does Android OS 8 WebVew with HTML select tag crash the app

守給你的承諾、 提交于 2019-11-29 17:02:31
问题 I've got a hybrid Cordova Android app, and the app crashes when user tap on a drop-down box in my WebView running on Android OS 8. I've created a simple page with a <select> tag and the issue is reproducible. I've got a workaround which is to do my own pop up alert to select, but just wondering if this is happening to anyone else and whether this is an OS8 WebView bug. Below is a simple page with <select> tag https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_select Below is my crash

Disable notification sound on Android O

假装没事ソ 提交于 2019-11-29 14:07:42
问题 I try to get rid of the notification sound in below method. I was able to reduced it to only go off once but it should be completely silent in Android O and lower versions. I searched a long time on stackoverflow and google but till now nothing completely works. Any help is appreciated. public void showUpdateProgressNotification(int id, String appName, int progress, String status, long downloadStart) { NotificationManager notificationManager = (NotificationManager) getSystemService(Context