android-8.1-oreo

Setting Device Owner app problem “Workspace has been locked” Android Oreo 8.1

别说谁变了你拦得住时间么 提交于 2019-12-11 20:04:33
问题 0 I've been using my app as a deviceOwner App since lollipop. I have a new device here which I want to be DeviceOwner too. It is a Samsung galaxy Tab A 10.5(2018) SM-T590. I am currently running this Version of the rom: T590XXU2ASC1. I am not using NFC method. I usualy create the /data/system/device_owner.xml file by myself. But since it is not working I tryed this method: 1-Factory reset the tablet in recovery mode 2-Pass through the annoying startup menus 3-Set lock screen to none 4-Enable

Data not showing on Android Pie 9.0

☆樱花仙子☆ 提交于 2019-12-11 12:03:22
问题 After I updated my phone from Android Oreo 8.0 to Android Pie 9.0, I no longer can get data from MySQL database using HttpUrlConnection. I try with emulator Android Oreo 8.0 and the data is displayed. However, when I try with emulator Android Pie 9.0, the data is not displayed. Please help me. 回答1: I Recently had the same issue for Android 9, but I had to use some URLs for different screens. So I added android:usesCleartextTraffic="true" to Manifest and it worked, but we didn't want to

onAnimationEnd() called twice

一个人想着一个人 提交于 2019-12-11 06:45:13
问题 After updating the build sdk 27 from 23 came across this issue of onAnimationEnd firing twice in the code below when called. onAnimationStart is called only once and onAnimationRepeat is not called as expected. Now in the app when the user presses the back button one time, they are taken two steps back. All the libraries in gradle are using 27.0.2 which is the latest. This code used to work fine in sdk 23. Our min target is 16. I'm using a work around by using a isAnimating flag but would

Android screen orientation issue in 8.1.0

ぐ巨炮叔叔 提交于 2019-12-11 05:07:00
问题 Am having issue in Android OS 8.1.0 Start a portrait activity (portrait declare on manifest) Start a landscape activity (landscape declare on manifest) Finish the landscape activity Portrait activity is showed again but the orientation start flipping: first in portrait mode, then landscape mode and finally portrait again. I had observed this issue in google pixel 2 xl device with OS version 8.1.0 onwards ( issue present in Android P developer preview1 also) i saw someone posted in google

How can we get the size of screen with notch on the top

别说谁变了你拦得住时间么 提交于 2019-12-10 15:48:35
问题 There are some devices such as Huawei p20(running android 8,8.1) which has in-built notch on the top. The current way to get the size of the screen is Display display = getWindow().getWindowManager().getDefaultDisplay(); Point screenSize = new Point(); display.getRealSize(screenSize); //screenSize.x //screenSize.y And it's leading the game out of screen. So, is there any way to solve notch issue with android P and Pre-p devices. 回答1: There are only few android devices with notch options and

How to prevent Screen Orientation change when Activity finishes on Android 8.1 Version Devices?

ε祈祈猫儿з 提交于 2019-12-10 12:35:38
问题 I'm working on an app and encountered a strange behavior on 8.1 Devices (Pixel2, Nexus5x), so I wrote a small App to verify this behavior. MainActivity is locked to portrait mode while LandscapeActivity is locked to landscape . MainActivity starts the LandscapeActivity for Result. Screen Switches from portrait to landscape as expected. When LandscapeActivity is finished it propagates the Result to MainActivity , while switching back to portrait (as expected). But Sometimes I encounter kind of

Autofill framework updates 8.1 cause crash to EditText

孤者浪人 提交于 2019-12-08 16:09:14
问题 I updated my phone to 8.1 from 8.0 and now I am getting this crash when I am trying to tap any EditText or com.rengwuxian.materialedittext.MaterialEditText on my app (which is built with API Level 25). FATAL EXCEPTION: main java.lang.NullPointerException: activityToken at android.os.Parcel.readException(Parcel.java:2010) at android.os.Parcel.readException(Parcel.java:1950) at android.view.autofill.IAutoFillManager$Stub$Proxy.startSession(IAutoFillManager.java:381) at android.view.autofill

How to Get File Path from URI in Android Oreo (8.1) or above

我的未来我决定 提交于 2019-12-07 05:50:26
问题 Expected Behavior When I am selecting the file which is stored inside "Download", it should able to retrieves its file name and path Actual Behavior When I am selecting the file which is stored inside "Download", it returns null. Steps to Reproduce the Problem When picking file method is called, it displays the folders in Android Go to downloads, select a file It returns null in getting real path from URI Here is the code what i implemented public static String getPath(final Context context,

Is there an API to detect which theme the OS is using - dark or light (or other)?

只谈情不闲聊 提交于 2019-12-06 21:51:07
问题 Background On recent Android versions, ever since Android 8.1, the OS got more and more support for themes. More specifically dark theme. The problem Even though there is a lot of talk about dark mode in the point-of-view for users, there is almost nothing that's written for developers. What I've found Starting from Android 8.1, Google provided some sort of dark theme . If the user chooses to have a dark wallpaper, some UI components of the OS would turn black (article here). In addition, if

Why do I get RemoteServiceException for creating/updating a notification?

陌路散爱 提交于 2019-12-03 12:54:39
Background I have a spare time app that I've been working on for some years ( here ), and I try to handle as many crashes as I can (I hate seeing crash reports!). The problem One recent crash that seem quite new, is this one: android.app.RemoteServiceException: at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1768) at android.os.Handler.dispatchMessage (Handler.java:106) at android.os.Looper.loop (Looper.java:164) at android.app.ActivityThread.main (ActivityThread.java:6494) at java.lang.reflect.Method.invoke (Method.java) at com.android.internal.os.RuntimeInit