Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/190.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
第一次下载时,Android Apk的扩展速度非常慢_Android_Performance_Apk Expansion Files - Fatal编程技术网

第一次下载时,Android Apk的扩展速度非常慢

第一次下载时,Android Apk的扩展速度非常慢,android,performance,apk-expansion-files,Android,Performance,Apk Expansion Files,目前,我正在使用这个插件 https://github.com/erobertson42/cordova-plugin-xapkreader/tree/cordova-9 我正在使用此路径显示图像- 'content://com.x.x/main_expansion/assets/dummy.png'; 为了使图像路径安全,我正在使用domsanizer.bypassSecurityTrustUrl方法 getImg(img) { img = this.domSaniti

目前,我正在使用这个插件

https://github.com/erobertson42/cordova-plugin-xapkreader/tree/cordova-9
我正在使用此路径显示图像-

'content://com.x.x/main_expansion/assets/dummy.png'; 
为了使图像路径安全,我正在使用domsanizer.bypassSecurityTrustUrl方法

 getImg(img) {
        img = this.domSanitizer.bypassSecurityTrustUrl(img);
        return img;
    }

每当我在使用我的应用程序时,它的运行速度非常慢,但我会在整个应用程序的屏幕上一个接一个地运行,第一次在每个屏幕上运行大约40到60秒,但经过一段时间后,它会正常工作。如果有人有任何建议或担忧,请与他人分享

您需要这两个方面:评测应用程序和显示代码。评测应用程序如何?@VladyslavMatviienko抱歉,没有收到您的建议。评测器是一种检查哪些方法调用需要时间,哪些对象需要内存,等等。是的,我看到了这一点,无论何时我在录制一个点,它都可以正常工作。你有解决这个问题的方法吗?你需要两者:评测你的应用程序和显示你的代码。评测应用程序怎么样?@VladyslavMatviienko对不起,没有得到你。评测器是一个检查哪些方法调用需要时间,哪些对象需要内存,等。是的,我看到了,它是工作良好,每当我在一个点录音,你有任何解决这个问题的办法吗?