Networking with Retrofit & RxJava (using zip, flatmap)
Retrofit from Squareis an amazing library that helps with easy networking (even if you haven't made the jump to RxJava just yet, you really should check it out). It works even better with RxJava and these are examples hitting the GitHub API, taken straight up from the android demigod-developer Jake Wharton's talk at Netflix. You canwatch the talkat this link. Incidentally, my motivation to use RxJava was from attending this talk at Netflix.
(Note: you're most likely to hit the GitHub API quota pretty fast so send in an OAuth-token as a parameter if you want to keep running these examples often).