android-8.0-oreo

Getting Resources$NotFoundException in Webview of Android 8 (Oreo)

时光怂恿深爱的人放手 提交于 2020-06-12 04:52:11
问题 I am loading the URL of a website in WebView of my app. This website takes the basic details of a user. I am loading the WebView in activity. But when users of Android 8 clicks on the drop down of a website then the app throws below error. Please note that this WebView works perfectly on Android 7.1 or below. It only throws error in Android 8.0. FATAL EXCEPTION: main Process: <Package Name>, PID: 9392 android.content.res.Resources$NotFoundException: Resource ID #0x0 at android.content.res

Getting Resources$NotFoundException in Webview of Android 8 (Oreo)

柔情痞子 提交于 2020-06-12 04:52:07
问题 I am loading the URL of a website in WebView of my app. This website takes the basic details of a user. I am loading the WebView in activity. But when users of Android 8 clicks on the drop down of a website then the app throws below error. Please note that this WebView works perfectly on Android 7.1 or below. It only throws error in Android 8.0. FATAL EXCEPTION: main Process: <Package Name>, PID: 9392 android.content.res.Resources$NotFoundException: Resource ID #0x0 at android.content.res

“Source code does not match the bytecode” for system files on Huawei

。_饼干妹妹 提交于 2020-06-11 16:54:28
问题 We are debugging an issue with one of our apps which affects only Huawei devices. To debug it, we purchased P20 Lite ANE-LX1. We've placed some breakpoints in our code and are investigating the full stack trace. The device has Android 8.0 installed, and we have the same SDK downloaded in our Android Studio. When we attach our device to a debugger and try to investigate the stack trace we get the following errors in system source files: After playing with the stack trace, we can confirm that

“Source code does not match the bytecode” for system files on Huawei

别说谁变了你拦得住时间么 提交于 2020-06-11 16:52:08
问题 We are debugging an issue with one of our apps which affects only Huawei devices. To debug it, we purchased P20 Lite ANE-LX1. We've placed some breakpoints in our code and are investigating the full stack trace. The device has Android 8.0 installed, and we have the same SDK downloaded in our Android Studio. When we attach our device to a debugger and try to investigate the stack trace we get the following errors in system source files: After playing with the stack trace, we can confirm that

Android O - Notification Channels and NotificationCompat

孤者浪人 提交于 2020-06-09 11:44:28
问题 I cannot change this feeling: again, the Android developers came up with something new and leave everybody in the dark about how they would think the feature is used. I am talking about Notification Channels in Android O. For years I have been using the compatibility support libraries to avoid dealing with specific platform details. Namely: NotificationCompat . Now, the Builder requires me to supply a notification channel id, which is nice, but completely leaves me alone with creating such a

How can I detect app kill on Android 8.0 Oreo API 26 and after

大憨熊 提交于 2020-05-28 04:09:20
问题 I need to detect application process kill to run some clean up tasks on server side. The solutions which is mentioned on popular questions are no longer works on Android 8 or later. Is there a way to detect application kill on Android 8 or later? Pre-Android 8 solutions: How to know when my app has been killed? How to handle code when app is killed by swiping in android? 回答1: You could use same solutions you linked, but starting from Oreo a SERVICE should be started as FOREGROUND_SERVICE or

Android - Wifi Direct / p2p not able to find peers on Android 8

跟風遠走 提交于 2020-05-13 06:23:06
问题 I started creating an Android app wifi Wifi direct functionality. I do a peer discover and I like to see the peers in a listview. I now have a app which tries to discover peers and shows the peers in a list. But I'm facing the problem that this works fine on my Android 5 device. Here I can see my Android 8 device, but not the other way around. I cannot see my Android 5 device on my Android 8 device. I followed steps from here: https://developer.android.com/training/connect-devices-wirelessly

Broadcast receiver is not working in oreo and pie android

拈花ヽ惹草 提交于 2020-05-09 06:37:10
问题 Boot broadcast receiver is not working and there is nothing in onReceive() public class BootReceived extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) { Toast.makeText(context, intent.getAction(), Toast.LENGTH_LONG).show(); Log.d("IfWalaBooot", intent.getAction()); Intent intent1 = new Intent(context, MainActivity.class); intent1.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context

Progress dialog showing circular arrow only in Android Oreo

无人久伴 提交于 2020-03-15 05:50:18
问题 On Android 8 - Oreo ProgressDialog not working, its just showing the circular arrow. In my application I know its deprecated in API 26 This behavior of progress dialog is same for Google's other apps I have created custom dialog to show progress bar, is there any native solution for that Device - Nexus 5x Os - Android 8 回答1: I just had the same issue with Galaxy S7 with Oreo and it did happen for any ProgressBar , not just in ProgressDialog . Turned out I had turned off "Animator duration

Is notification mandatory while app is running(visible) for the foreground service in API>25

廉价感情. 提交于 2020-03-05 03:02:52
问题 From the stackoverflow and many blogs, i surely understand that foreground service never run without notification in API>25. But still i confuse that Is notification mandory while app is running on screen or visible. For eg. no need of notification when user stand within app. So is this possible to remove notification while app running ? In service class @Override public int onStartCommand(Intent intent, int flags, int startId) { ...... if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {