How many examples I have not read, lectures and theoretical explanations of the Handler
class have not been Handler
- I don’t understand how to work with it practically.
Theoretically, this is a class that manages a certain queue, called Looper
, that operates on certain messages that Handler
transmits. Handler
is also able to handle these messages. It seems to be the idea is to allow the UI thread to execute these messages in chunks that will not slow it down and interfere with the drawing.
But I absolutely do not understand what these messages are, how and where to send them - examples are not obvious.
Can you write a small course on this "illusion" of multithreading, with examples for simple types and classes? (Probably said stupidity, but in my view, in this message you can send a link to an object or some message).
The request to the site of Alexander Klimov \ StartAndroid \ off. the documentation does not send, more than once been there. I also studied the technopark lectures.