找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 11902|回复: 352

takagen99 tvbox 修复版本 修复闪退 12月13日

 火... [复制链接]
之前一直用 q215613905 这个版本的tvbox 结果这段时间阿里云老断流 木有办法今天看 takagen99 这个版本的tvbox 修复了阿里云断流问题

就拉了下来编译一下 结果 我家电视一直闪退安装完了启动就闪退。然后就真机调试了下  

嗯  这里  FileUtils.cleanPlayerCache();  这里有问题。

就是启动清理。。

q215613905 这个版本的tvbox  的木有这个问题 那就简单了直接 复制粘贴




    private static boolean deleteDir(File dir) {
        if (dir != null && dir.isDirectory()) {
            String[] children = dir.list();
            for (String child: children) {
                boolean success = deleteDir(new File(dir, child));
                if (!success) {
                    return false;
                }
            }
        }
        return dir.delete();
    }

    //启动app清除
    public static void cleanPlayerCache() {
        String ijkCachePath = getCachePath() + "/ijkcaches/";
        String thunderCachePath = getCachePath() + "/thunder/";
        String jpaliCachePath = getCachePath() + "/jpali/Downloads/";
        File ijkCacheDir = new File(ijkCachePath);
        File thunderCacheDir = new File(thunderCachePath);
        File jpaliCacheDir = new File(jpaliCachePath);
        try {
            if (ijkCacheDir.exists()) deleteDir(ijkCacheDir);
        } catch (Exception e) {
            e.printStackTrace();
        }
        try {
            if (thunderCacheDir.exists()) deleteDir(thunderCacheDir);
        } catch (Exception e) {
            e.printStackTrace();
        }
        try {
            if (jpaliCacheDir.exists()) deleteDir(jpaliCacheDir);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }



替换


    public static void cleanPlayerCache() {
        String thunderCachePath = getCachePath() + "/thunder/";
        File thunderCacheDir = new File(thunderCachePath);
        try {
            if (thunderCacheDir.exists()) recursiveDelete(thunderCacheDir);
        } catch (Exception e) {
            e.printStackTrace();
        }

        String ijkCachePath = getExternalCachePath() + "/ijkcaches/";
        File ijkCacheDir = new File(ijkCachePath);
        try {
            if (ijkCacheDir.exists()) recursiveDelete(ijkCacheDir);
        } catch (Exception e) {
            e.printStackTrace();
        }

        String jpaliCachePath = getExternalCachePath() + "/jpali/Downloads/";
        File jpaliCacheDir = new File(jpaliCachePath);
        try {
            if (jpaliCacheDir.exists()) recursiveDelete(jpaliCacheDir);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }



编译 顺利进入应用。愉快的玩耍  测试30多分钟木有断流现象。。。手工

高手勿喷 感谢配合

下载地址回复可见

游客,如果您要查看本帖隐藏内容请回复


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
给大佬点个赞

点评

分享快乐 对你有帮助就好  详情 回复 发表于 2024-3-14 14:08
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

修复版本 修复闪退
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

给大佬点个赞
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

谢谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

看看是什么,谢谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

支持一下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来看看是什么
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

谢谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

VIDAA_TV是什么盒子

点评

海信电视  详情 回复 发表于 2023-12-13 21:54
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

感谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
654850695 发表于 2023-12-13 21:34
VIDAA_TV是什么盒子

海信电视
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

谢谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来自手机 | 显示全部楼层
现在电视软件好少哦
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

谢谢分享!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-27 23:31

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表