admin
-
CRUD Android App with RecyclerView, Room and Fragment
Building a CRUD App with RecyclerView, Room, and Fragment In this tutorial, we will build a complete CRUD (Create, Read, Update, Delete) application in Android. We will use a Fragment to manage our User Interface, RecyclerView to display a list of names, and Room Database to store those names locally. Step 1: Add Dependencies (build.gradle) First, add the Room dependencies to your module-level build.gradle file inside the dependencies block. Copy dependencies { def room_version = “2.6.1” implementation “androidx.room:room-runtime:$room_version” annotationProcessor “androidx.room:room-compiler:$room_version”…
-
Android Tutorial on RecyclerView, Room and Fragment
Building a Task List App: RecyclerView, Room, and Fragment This is a great combination of core Android topics. To demonstrate RecyclerView, Room, and Fragment working together, we will build a simple Task List App. The app will use a Fragment to display a user interface, Room to save tasks to a local SQLite database, and a RecyclerView to display that list of tasks. Step 1: Add Dependencies (build.gradle) First, you need to add the Room dependencies. Open your app-level build.gradle…
-
SharedPreferences – Android (Java)
SharedPreferences The “Save Game” of Android Development, Explored & Visualized Storing small bits of data shouldn’t require a full database. SharedPreferences allows you to persist key-value pairs easily. Whether it’s a user’s high score or a “Dark Mode” toggle, this API has been the backbone of Android persistence for years. Try the Simulator Click the buttons to see the UI update instantly, then watch apply() write the data to the Disk Storage in the background. Android UI 0 Current Counter…
-
Tutorial: Your First Android App (Hello World)
This guide covers the essential steps to create a functional “Hello World” application in Android Studio. 1. Project Setup 2. Designing the Layout (XML) Android uses XML for UI design. Navigate to res -> layout -> activity_main.xml. This file defines how your app looks. 3. Writing the Logic (Java) Now, navigate to java -> com.example.myfirstapp -> MainActivity.java. This is where you tell the app what to do when the user interacts with the UI. 4. Running the App