Skip to content

Commit 73e62ee

Browse files
committed
vault backup: 2024-12-26 22:27:56
1 parent e82d8bd commit 73e62ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Android.md

+1
Original file line numberDiff line numberDiff line change
@@ -4828,6 +4828,7 @@ StrictMode.setThreadPolicy(policy);
48284828
```
48294829

48304830
注意:**在网络阻塞的时候,这可能会导致整个程序(主线程)阻塞,最终ANR(应用程序未响应)**
4831+
所以这种做法不可行
48314832

48324833
因此,**网络操作应该在子线程中进行**,同时Android**不允许子线程直接修改UI组件**,需要用`Hander`等作为桥梁
48334834

0 commit comments

Comments
 (0)