Interesting to see that the "Tasks" of the Android library are pretty similar to JS Promises, and the Futures and Promises of frameworks like Akka. All of which do help simplify and structure concurrent code.<p>There are people trying to play with Akka and Scala for Android as well, though it's an awkward fit: Scala's run-time library is large enough to strain size limits on an Android app. (On older versions of Android, pre-Jellybean, you need to have Proguard evict unused methods and classes just to get something small enough to fit.)<p>That said, using with the tools of more modern JVM-based languages can tighten up your code in all sorts of ways. An experiment along those lines is here:<p><a href="https://github.com/rst/positronic_net" rel="nofollow">https://github.com/rst/positronic_net</a>
<a href="http://rst.github.io/positronic_docs.html" rel="nofollow">http://rst.github.io/positronic_docs.html</a>