Practical Gson — Storing Data in Android's SharedPreferences

In this blog post, we'll get practical one more time. Often Android apps require to store smaller objects, for example user information. On one hand, it's often overkill to add a database to the app for just this purpose. On the other hand, it's a hassle to store everything in the SharedPreferences if you've a more complex object structure.

In the next few minutes you'll see how you can utilize Gson to make this a very easy process.

Of course, this will not be the only post in our Gson series. If you're interested in the other topics, check out our series outline:

Gson Series Overview

Continue reading

University Enrollment Required

Future Students benefit from value packed videos and tutorials.

Enroll to receive exclusive content or sign in if you’re already a Future Student.

Enroll me for $15/mo

Explore the Library

Find interesting tutorials and solutions for your problems.