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 …