Since a Worker thread starts the activity in the main thread activity, I'll try and use IntentService class because this creates separate thread to execute the activity (independent from the main thread) and from what I red this is used among other things for downloading and uploading large files.
(由于Worker线程在主线程活动中启动了活动,因此我将尝试使用IntentService类,因为这会创建单独的线程来执行活动(独立于主线程),并且根据我的喜好,该线程还用于下载并上传大文件。)
I hope this will resolve the problem of freezing and slowing the activities related to the main thread. (我希望这将解决冻结和减慢与主线程相关的活动的问题。)
Thank you all for your help. (谢谢大家的帮助。)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…