摘要:花屏,由于過度繪制導(dǎo)致,關(guān)閉硬件加速。華為的受保護應(yīng)用問題,華為有自己的一套連接機制,時間一長就把網(wǎng)絡(luò)給切斷掉。華為手機,如果與不在同一進程,中監(jiān)控網(wǎng)絡(luò)的收不到網(wǎng)絡(luò)連上的廣播,但是能收到斷開的廣播。
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花屏,由于過度繪制導(dǎo)致,關(guān)閉硬件加速。
3:華為的受保護應(yīng)用問題,華為有自己的一套連接機制,時間一長就把網(wǎng)絡(luò)給切斷掉。
4:相同顏色值在全局是同一份,如果對其改變獲取后的colorDrawable值,會導(dǎo)致其它所有使用的地方都改變,可以采用mutable避免。
5:華為p8手機,如果service與ui不在同一進程,service中監(jiān)控網(wǎng)絡(luò)的BroadcastReciver 收不到網(wǎng)絡(luò)連上的廣播,但是能收到斷開的廣播。
6:建議做手游或者app測試時使用第三方測試平臺,比如像Testbird云測平臺(現(xiàn)在注冊送免費調(diào)試時間)之類的,方便快捷,且結(jié)論更準(zhǔn)確。
文章版權(quán)歸作者所有,未經(jīng)允許請勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。
轉(zhuǎn)載請注明本文地址:http://www.ezyhdfw.cn/yun/65388.html
摘要:使用進行測試需要開發(fā)人員配合打開一個的開關(guān)。真機測試時,必須在應(yīng)用中打開調(diào)試開關(guān)。點擊想要調(diào)試的下方的鏈接,就可以查看這個頁面的源代碼了。通過源代碼就可以查看并確定元素定位表達(dá)式了。 ...
摘要:我們的業(yè)務(wù)代碼是在自己的客戶端微信釘釘企業(yè)微信四個地方跑的同一套代碼。描述的具體描述是企業(yè)微信用戶在使用上傳圖片時,無反應(yīng)。 起因 今早一去公司,被組長遠(yuǎn)程發(fā)過來一個Bug,據(jù)說是用戶反饋的一個iOS的問題,在我們的業(yè)務(wù)中,有一個有關(guān)圖片上傳的問題。我們的業(yè)務(wù)代碼是在自己的客戶端、微信、釘釘、企業(yè)微信四個地方跑的同一套代碼。 Bug描述 Bug的具體描述是企業(yè)微信用戶在使用上傳圖片時,...
閱讀 3286·2021-10-15 09:41
閱讀 3313·2021-09-22 16:05
閱讀 2563·2021-09-22 15:19
閱讀 3074·2021-09-02 15:11
閱讀 2540·2019-08-30 15:52
閱讀 941·2019-08-30 11:06
閱讀 1069·2019-08-29 16:44
閱讀 1405·2019-08-23 18:18