摘要:花屏,由于过度绘制导致,关闭硬件加速。华为的受保护应用问题,华为有自己的一套连接机制,时间一长就把网络给切断掉。华为手机,如果与不在同一进程,中监控网络的收不到网络连上的广播,但是能收到断开的广播。
1:Andorid L theme colorPrimary 不能使用带有alpha的颜色值,否则会有异常抛出, 直接判断了是否alpha是否等于0或者255,其他都会异常。
@Override protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { if (mParent == null) { super.onApplyThemeResource(theme, resid, first); } else { try { theme.setTo(mParent.getTheme()); } catch (Exception e) { // Empty } theme.applyStyle(resid, false); } // Get the primary color and update the TaskDescription for this activity if (theme != null) { TypedArray a = theme.obtainStyledAttributes(com.android.internal.R.styleable.Theme); int colorPrimary = a.getColor(com.android.internal.R.styleable.Theme_colorPrimary, 0); a.recycle(); if (colorPrimary != 0) { ActivityManager.TaskDescription v = new ActivityManager.TaskDescription(null, null, colorPrimary); setTaskDescription(v); } } } /** * Creates the TaskDescription to the specified values. * * @param label A label and description of the current state of this task. * @param icon An icon that represents the current state of this task. * @param colorPrimary A color to override the theme"s primary color. This color must be opaque. */ public TaskDescription(String label, Bitmap icon, int colorPrimary) { if ((colorPrimary != 0) && (Color.alpha(colorPrimary) != 255)) { throw new RuntimeException("A TaskDescription"s primary color should be opaque"); } mLabel = label; mIcon = icon; mColorPrimary = colorPrimary; }
2:android 5.0花屏,由于过度绘制导致,关闭硬件加速。
3:华为的受保护应用问题,华为有自己的一套连接机制,时间一长就把网络给切断掉。
4:相同颜色值在全局是同一份,如果对其改变获取后的colorDrawable值,会导致其它所有使用的地方都改变,可以采用mutable避免。
5:华为p8手机,如果service与ui不在同一进程,service中监控网络的BroadcastReciver 收不到网络连上的广播,但是能收到断开的广播。
6:建议做手游或者app测试时使用第三方测试平台,比如像Testbird云测平台(现在注册送免费调试时间)之类的,方便快捷,且结论更准确。
文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。
转载请注明本文地址:https://www.ucloud.cn/yun/65388.html
摘要:使用进行测试需要开发人员配合打开一个的开关。真机测试时,必须在应用中打开调试开关。点击想要调试的下方的链接,就可以查看这个页面的源代码了。通过源代码就可以查看并确定元素定位表达式了。 ...
摘要:我们的业务代码是在自己的客户端微信钉钉企业微信四个地方跑的同一套代码。描述的具体描述是企业微信用户在使用上传图片时,无反应。 起因 今早一去公司,被组长远程发过来一个Bug,据说是用户反馈的一个iOS的问题,在我们的业务中,有一个有关图片上传的问题。我们的业务代码是在自己的客户端、微信、钉钉、企业微信四个地方跑的同一套代码。 Bug描述 Bug的具体描述是企业微信用户在使用上传图片时,...
阅读 3116·2021-10-15 09:41
阅读 3184·2021-09-22 16:05
阅读 2423·2021-09-22 15:19
阅读 2888·2021-09-02 15:11
阅读 2461·2019-08-30 15:52
阅读 852·2019-08-30 11:06
阅读 1015·2019-08-29 16:44
阅读 1271·2019-08-23 18:18