在Android中将处理程序与onCreate()结合使用

时间:2020-05-02 06:30:02

标签: java android oncreate android-handler ui-thread

我在onCreate()方法内为UI线程启动了处理程序,并使用该处理程序发布了新消息。

android系统将如何在messagequeue内部处理此代码

是两条消息,一条消息用于onCreate()方法,另一条消息用于runnable处理程序 否则oncreate()方法内的每个行代码将成为messagequeue内的消息

我的问题是因为我不了解oncreate()方法与UI线程messagequeue一起工作

0 个答案:

没有答案