09/22
2019

Android Dev Tools 5.5.5 is Online Now

English Version:
Android Dev Tools 5.5.5 is online now, You can download it from Google play: https://play.google.com/store/apps/details?id=cn.trinea.android.developertools , Features includes:

1. LayoutViewer: Add tips if no ‘Start in background’ permission when save layout file
2. Decompile: Fix cannot share decompile files
3. Shortcut: Fix cannot add shortcut on some phones
4. Shortcut: Fix canot open from notification bar on some phones
5. Other: Fix cannot open about page on XiaoMi Phone

 

中文版:
Android 开发助手 5.5.5 上线,可以从 Google Play应用宝酷安及各大商店下载,主要功能包含:

1. 布局查看:保存布局文件时增加无”后台弹出界面”权限提示
2. 反编译:修复分享反编译内容异常问题
3. 快捷方式:修复部分机型添加静态快捷方式异常问题
4. 快捷方式:修复部分机型打开通知栏快捷方式错误问题
5. 其他:修复小米手机打开手机关于页面错误问题

 

当应用切换到后台后,在小米机器上点击 Window 进行操作无法弹出 Activity,需要授权”后台弹出界面”权限,关于如何在小米手机上判断是否授权了 ‘后台弹出界面’ 权限,可参考如下代码:

public static boolean isCanBeStartedFromBackground(Context context) {
    if (AndroidVersionUtils.isNotLessThan(Build.VERSION_CODES.KITKAT)) {
        if (isXiaoMi()) {
            try {
                AppOpsManager ops = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);
                int op = 10021; // >= 23
                Method method = ops.getClass().getMethod("checkOpNoThrow", new Class[]{int.class, int.class, String.class});
                Integer result = (Integer) method.invoke(ops, op, Process.myUid(), context.getPackageName());
                return result == AppOpsManager.MODE_ALLOWED;
            } catch (Exception e) {
                EventReport.report("isCanBeStartedFromBackground", e);
            }
        }
    }
    return true;
}

 

 

繁体版:
Android 開發助手 5.5.5 上線,可以從 Google Play應用寶酷安及各大商店下載,主要功能包含:

1. 布局查看:保存布局文件時增加無”後台彈出界面”權限提示
2. 反編譯:修複分享反編譯內容異常問題
3. 快捷方式:修複部分機型添加靜態快捷方式異常問題
4. 快捷方式:修複部分機型打開通知欄快捷方式錯誤問題
5. 其他:修複小米手機打開手機關于頁面錯誤問題

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>