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

Java Basics for Retrofit — Annotations

A lot of readers on our Retrofit series are just starting out with developing software or are new to Java/Android. We're really happy to welcome all new developers! We've received many questions, which were caused by implementing apps with Retrofit, but not actually specific to Retrofit. Consequently, we decided …

Continue Reading
Page 1 of 25

Explore the Library

Find interesting tutorials and solutions for your problems.

Miscellaneous