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.

  • one
    Here is a good article: habrahabr.ru/post/142256 But I don’t really understand your goals: practical or academic? Practical - and what is the difficulty, copy-paste code on the manual and that's it. There are problems - ask specifically about the code. Academic ... sorry, but the question is that you can hardly understand Java, OOP and the work of the Android OS. Maybe we should return to this issue later, when will the understanding of the basic principles be enough? I doubt that here someone will be able to carry on the style of presentation with all the sources cited by you at the same time. - Ivan Pshenitsyn

0