How do I get a Massage instance of Handler? Why not just new?

Basically all by calling get () There are many ways to use Message, whether it's Handler#obtainMessage(), Message#obtain(), or even Handler#postRunnable(), which is essentially a static method to call Message obtain(). public final Message obtainMessage() { return Message.obtain(this); } public final boolean post(@NonN ...

Posted by PDP11 on Mon, 13 Sep 2021 13:10:07 -0700