Android provides several ways to store user and app data. SQLite is one way of storing user data. SQLite is a very light weight database which comes with Android OS. In this tutorial I am going to show you how to write classes to handle all SQLite operations.
JSON is one of the best method for storing data. In this tutorial i am going to show you how to parse a JSON response from a URL and display it in a RecyclerView and it is provided with a example. JSON data has both square brackets and curly brackets. The square brackets denote JSON Array and curly bracket denotes JSON Object.
RecyclerView is more advanced version of ListView with improved performance and other benefits. Using RecyclerView and CardView together, both lists and grids can be created very easily. In this tutorial I am going to show how to render a simple RecyclerView with a custom layout. We’ll also learn writing a adapter class, displaying selected items from list on same screen. The recycler view we are going to design contains dummy list of 50 students displaying id, enrolment number, name, birthdate and checkbox for taking attendance. Also displaying list of present students after taking attendance.