android & node.js dev

Android Custom Fonts Renewed — Font Family

In the last tutorial, we've explored the modern way of implementing custom fonts on Android. However, it broke the support for dynamically changing the font style and weights (for example, bold or italic). In this tutorial, we'll fix this drawback and configure a font family with different styles. {{outline}} {{video} …

Continue Reading

Gson Builder — Pretty Printing

After more than fifteen function-relevant Gson tutorials we'll move to something more developer focused. By default Gson will create minified JSON strings. This is important to reduce the amount of data being transferred over the network. However, especially with large models, for us developers it can be challenging to read …

Continue Reading

Gson Advanced — ProGuard Configuration

If you're using the code obfuscator ProGuard before releasing apps, this will be a valuable tutorial for you. We'll go through a standard ProGuard configuration, which should prevent unexpected runtime exceptions in your apps when you're using ProGuard and Gson. If you're not using ProGuard, you can check our other …

Continue Reading

Retrofit 2 — Multiple Server Environments (Develop, Staging, Production)

When you’re developing an app professionally, you’re probably dealing with multiple server environments. Your API developers are constantly changing and improving the endpoints the apps consume. If you’ve an excellent backend developer, he’ll provide multiple environments: develop: latest snapshot of the API code staging: next API …

Continue Reading

Java Basics for Retrofit — Callbacks

Returning the result of a long-running function at a later time is an important aspect of programming. A lot of high-level programming languages have the asynchronousity build in (e.g. C# with delegates) or it’s part of the language nature that it even leads to a callback hell (Node. …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.