huawei

Strange allow/deny question on Huawei 5.1 phone when showing notification

≯℡__Kan透↙ 提交于 2020-01-21 11:44:09
问题 So it turns out that Huawei phones with 5.1 can't display MediaStyle notifications so while fixing that, I made a very simple notification test and I get a strange question asking Allow App Name to push messages to the notification panel . I don't use push in any way, in fact the screenshot below is for an app that all it does is show a sample notification, nothing else. How can I make it not show that? This is the code: Notification notification = new Notification.Builder

How to use renderscript support mode correctly

送分小仙女□ 提交于 2020-01-06 08:16:33
问题 I recently tested my renderscript code on a Huawei P10 with api28 and I noticed that the runtime of the renderscipt code is around 100ms. For older devices I tested (eg. S6 or Nexus4) the runtime is in the range of 20-30ms. For the P10 I found two solutions to this problem: Forcing only cpu usage via adb got to renderscriptTargetApi 28 (any api < 28 is slow) Since solution 1 cant be done programmatically, solution 2 seems the only valid way to overcome the issue. My app is supposed to support

onTaskRemoved() not getting called in HUAWEI and XIOMI devices

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-04 04:33:09
问题 I've been using onTaskRemoved() method in a Service to detect when an app was removed from device RECENT list by swiping it away. I preform some logging and some other operations that need to take place when this happens. It works perfectly. Then I checked this method in an HUAWEI device running Android 6.0. The method never gets called. I also added a Log.d call and as expected, this log never appeared. The same happens on a XIOMI device. Any ideas why this happens and how to resolve this?

Can't enable DEBUG & VERBOSE for Huawei Android Logcat

我的未来我决定 提交于 2020-01-02 17:21:03
问题 I'm having Huawei Nova Plus I just found that Huawei only displays in its Android log starting log level INFO . Of course I need DEBUG & VERBOSE in my development. I came across this link which is exactly same screens appear to me and I mark the 3 check at the end for " AP Log ", " Charge Log ", & " Sleep Log " when I reboot my mobile, it still behaves the same and only logging is for INFO. I check the project menu again, and I found all log level not checked after reboot. Appreciate help as

Unable to start android app due to LogCollectManager.getUserType() error

房东的猫 提交于 2019-12-30 04:37:05
问题 When I try to run my application on Huawei P9 I’m getting the error Attempt to invoke virtual method 'int com.huawei.lcagent.client.LogCollectManager.getUserType()' on a null object reference Is there any way to debug this because application works on other Android 6 phones (Samsung, HTC...). APP: https://play.google.com/store/apps/details?id=com.morescreens.mkt LOG: 07-04 10:42:56.045: W/System.err(955): java.lang.NullPointerException: Attempt to invoke virtual method 'int com.huawei.lcagent

onTaskRemoved() not getting called in HUAWEI and XIOMI devices

耗尽温柔 提交于 2019-12-27 11:14:46
问题 I've been using onTaskRemoved() method in a Service to detect when an app was removed from device RECENT list by swiping it away. I preform some logging and some other operations that need to take place when this happens. It works perfectly. Then I checked this method in an HUAWEI device running Android 6.0. The method never gets called. I also added a Log.d call and as expected, this log never appeared. The same happens on a XIOMI device. Any ideas why this happens and how to resolve this?

default ansible template returns error

我怕爱的太早我们不能终老 提交于 2019-12-25 17:44:43
问题 do Ansible in default configuration works with other vendors? For example Huawei ? If i'm running some testing commands like: sudo ansible -m shell -a 'display version' servers 10.46.1.1 | UNREACHABLE! => { "changed": false, "msg": "Failed to connect to the host via ssh: \r\n**********************************************************************\r\n* Jus esate prisijunge prie privacios irangos. Visi veiksmai,vykdomi *\r\n* su sia iranga, yra fiksuojami. Tam, kad prieiti prie sios irangos *\r\n

ERROR org.omg.CORBA.MARSHAL Sequence length too large

匆匆过客 提交于 2019-12-25 09:00:34
问题 After successfully fetching alarms from Corba U2000 server and now reading the values, I am getting the error below ERROR: org.omg.CORBA.MARSHAL: Sequence length too large. Only 12 available and trying to assign 31926513 vmcid: 0x0 minor code: 0 completed: No org.omg.CORBA.MARSHAL: Sequence length too large. Only 12 available and trying to assign 31926513 vmcid: 0x0 minor code: 0 completed: No at org.omg.CosNotification.EventBatchHelper.read(EventBatchHelper.java:57) at AlarmIRPConstDefs

Sending SMS messages via bash script using a Huawei E8372 hilink

大城市里の小女人 提交于 2019-12-22 10:52:44
问题 I am attempting to send an SMS message from a Huawei E8372, which unlike older versions of this product now requires a login (username/password) before it will allow API calls to be made. From https://github.com/arska/e3372/issues/1 I have been able to update the code written by arasaahov as below which gets me past the login step (I can get a SESSION_ID cookie and token) #!/bin/sh # Script updated from example here: https://github.com/arska/e3372/issues/1 MODEM_IP="192.168.8.1" message=

Animator/AnimatorSet issue on some devices

五迷三道 提交于 2019-12-13 13:34:24
问题 I have made some tests with the ObjectAnimator class on some devices and everything is OK except for one device : Huawei P8 Lite 2017. On this device, the View "disappears" when the animation starts and "appears" at the end. The issue appears only when I'm using AnimatorSet/Animator (Java code or XML), but animations which use the old Animation class (TranslateAnimation, AlphaAnimation...) are working well. Here is the list of devices where there is no issue : Nexus 5 Nexus 5X Nexus 9 HTC One