Tag: data

  • Implementing Data Store in Android Project

    Official Google Android Developer documentation encourages using DataStore, if you already have implemented SharedPreferences. It is recommended to not store complex data objects in SharedPreferences, for complex types, consider using Room Database. But, if you still wish to procced using DataStore for storing complex data objects, you can do it via Proto Data Store. Add…

  • Understanding JSON – Part 3, Writing

    While reading from a JSON is done to bind the value to User Interface, writing is done prepare a data object that can be to an API. Here, again we’re going to write to a JSON via JavaScript, to not rely on any external dependency for now. stringify() is an in-built method in JavaScript, that…

  • Understanding JSON – Part 2, Reading

    In Part 1, we understood what a JSON is and how it can be put to work to transfer data effectively. In this part, we’ll quickly understand how JSON Array or Objects can be read. For reading purposes, we’re going to use JavaScript because it doesn’t require any specific library or external code to read…

  • Understanding JSON – Part 1, Definition

    While JSON does sound comically similar to the name Jason, JSON actually stands for JavaScript Object Notation. JSON is format for storing and transporting data across applications. JSON is completely language independent. That means, any language can prepare and read data in JSON format. The most popular scenario of using JSON is by making API…

  • Implementing Room in an Android Project

    Persistence being a vital part of an application as you don’t want your users local data to be lost when they close your application. It only results in poor app experience. But a library called Room, built on top of traditional SQLite provides more robust and efficient way to store and retrieve that local data…