Image for post
Image for post

Relational databases and Structured Query Language need no special introduction — anyone who’s dabbled in anything related to programming has most definitely heard of them and has probably used them to a varying degree at some point in time. And for a good reason, as they provide an efficient and relatively simple means of data persistence. Support for relational databases has been built into the Android system since it’s early days, in the form of SQLite — an embbeded database engine which enables developers to harness the power of databases without much fuss about pre-configuration, startup scripts and other chores associated with standalone, client-server SQL engines (ie. …


Image for post
Image for post

If you’re an Android developer you probably remember, with no small amount of nostalgia, the first time you encountered the NetworkingOnMainThread exception. Asynchronicity is one of the main driving forces behind the Android platform, and yet, the libraries provided by the SDK always were somewhat lacking when it comes to dealing with it. Combine that with tedious work of manually dealing with any kind of RESTful API, and you soon find yourself in a hell made of disjointed code fragments, repeated loops and confusing callbacks.

This article will show you, step-by-step, how to make a simple API call on Android the easy way — using 3rd party libraries. In the first part we’ll deal with the API call itself using Retrofit and Gson. In the second part we’ll see how we can make our lives even simpler and deal with asynchronicity in a concise and elegant way using RxJava. …

About

Goran Kovač

Self-taught Android developer | Law school graduate | Bookworm

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store