February 2019
Intermediate to advanced
450 pages
11h 59m
English
Graphical toolkits do a lot to help application developers avoid the complications of concurrency where possible. For example, a button's click handler will typically run on the thread that controls graphical updates; this means that simple cases of user feedback or displaying data as a result of a user action can be done without worrying about multi-threading complexity. A simple callback function for an Android application may be as simple as the following code:
button.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { button.SetText("Updated!"); }});
However, even a modest application is unlikely to avoid these complications for long. Consider a simple RSS newsfeed application; all it does ...
Read now
Unlock full access