How can I write simple custom Android Handler class?
<p>It's interesting for me how it's possible to write simple Android Handler class using only pure java to send signals from one thread to another?</p>

<p>I saw the source code:
<a href="http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.1_r2/android/os/Handler.java" rel="nofollow">http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.1_r2/android/os/Handler.java</a></p>

<p>But how for example to write class (Handler class) that can send for example int value from one thread to another(not using share data(like in Android Handler?))?</p>
