-
主线程阻塞?
-
报错
Thread[3,tid=30400,WaitingInMainSignalCatcherLoop, Thread*=0x782e816400,peer=0x1e542050,"Signal Catcher"]: reacting to signal 3 2020-08-25 13:16:41.384 30386-30400/com.example.wheel_railmeasurement I/railmeasuremen: Wrote stack traces to '[tombstoned]'
V/Minikin: CurFontPath: /system/fonts/Roboto-Regular.ttf D/Minikin: switch to android orgin ttf
-
我不认识这是啥玩意儿,ANR?内存溢出?
-
AsyncTask 中仅有一个方法 doInBackground() 是执行在子线程;其余的都执行在主线程;onPostExecute() 中做一些简单的 UI 操作,如果方法中出现 大~量 的控件,上下文或者 intent 等 非静态变量,那就要小心了,很有可能你睡一觉再打开软件他就爆出 ANR,内存溢出。
一个BUG调一天之使用AsyncTask阻塞在onPostExecute()方法
最新推荐文章于 2023-10-16 15:41:06 发布