Activity recycling

Handling Activity Data After Being Recycled When an activity enters the stopped state, it may be recycled by the system. For example, when Activity A launches Activity B, Activity A …

The Activity Lifecycle

Understanding the Activity Lifecycle Is Crucial — It Helps You Write Smooth-Running Apps And it allows you to manage app resources more efficiently. Delivering a better user experience. Android activities …

Destroying an activity

Pressing the back button will destroy the current activity. If you don’t want to destroy the activity using the back button, you can also use the finish(); method provided by …

Destroying an activity

Pressing the back button will destroy the current activity. If you don’t want to destroy the activity using the back button, you can also use the finish(); method provided by …

Toast

Using the Toast Notification Control Toast is a handy notification feature provided by the Android system. In your app, you can use it to show quick, short messages to the …

Registering activities

All activities must be registered in AndroidManifest.xml to take effect Open it up and you’ll see So our activity is actually already registered, but it’s not set as the main …

Activity

What Is an Activity and How to Add One Manually 1. What Is an Activity? An Activity is a component in an Android app that provides a user interface and …

Logging functionality

Using Log in Android 1. Android Log Utility Class: Log Android SDK provides a dedicated logging utility class android.util.Log, which offers 5 levels of logging methods, arranged from lowest to …

build.gradle

The Role of the build.gradle File I. Introduction to the Gradle Build System Android Studio uses Gradle to build projects. Gradle is a highly advanced build tool that uses a …

How an App Actually Runs

1. Starting from the Launch Entry Point To understand how any Android app launches, you have to start with the global configuration file: AndroidManifest.xml. Open AndroidManifest.xml and look for the …

Understanding Android

What is Android? This course covers the older version of Android development, built with Java and XML layouts. The current mainstream approach is Kotlin + Compose. Android System Architecture (4 …