Skip to content

Explore Android Launch Modes πŸš€: Understand `Standard`, `SingleTop`, `SingleTask`, and `SingleInstance` behaviors with hands-on demos. Perfect for mastering activity and task management! 🌟 #AndroidDev #LaunchModes #Kotlin

Notifications You must be signed in to change notification settings

Vibhav00/LaunchModes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€πŸŒŸ LaunchModes

πŸš€ Demo Project: Exploring Android Launch Modes

This project is all about understanding the four launch modes in Android: 1️⃣ Standard 2️⃣ SingleTop 3️⃣ SingleTask 4️⃣ SingleInstance

It demonstrates how different activities behave when launched with these modes and various flags. πŸ§‘β€πŸ’»βœ¨

Perfect for anyone curious about activity behavior and task management in Android! πŸ‘¨β€πŸ«πŸ“±

What are launch modes

Launch Modes in Android πŸš€πŸ“± define how activities are launched and behave within the task stack:

✨ Standard creates a new instance every time, making it the default behavior.
πŸ”„ SingleTop reuses the existing instance if it’s already on top, optimizing performance.
🧹 SingleTask clears other activities in the task and creates a new instance, great for home screens 🏠.
πŸ—‚οΈ SingleInstance runs the activity in its own task, perfect for exclusive use cases like a video player πŸŽ₯.

Different Screens πŸ“±πŸ“²πŸ“³

Password Manager offers a secure, sleek experience with a beautifully crafted interface. Enjoy a smooth and intuitive design across features like All Passwords, Add New Password, Saved Passwords, Password Search, Secure Backup, PIN & Biometric Lock, and more. Dive into a user-friendly, visually appealing journey to securely store, manage, and protect your sensitive information! πŸ”βœ¨

First Task

Second Task

About πŸ”βœ¨

πŸš€ Exploring Android Launch Modes with My Demo Project

I created a demo project to showcase the behavior of different launch modes in Android in a practical way. πŸ“±βœ¨

The app includes four activities: A, B, C, and D, each demonstrating how launch modes affect activity behavior and task management. I even added a sneak peek of task structures πŸ—‚οΈ, showing how tasks look under various conditions.

To make it visually appealing, I used a transparent background 🌈 (you can refer to my LiveData project for more). The project focuses on the four main launch modes, but did you know there’s a fifth mode? πŸ€” You can fork this repository and contribute by adding the last mode or exploring the many intent flags 🎯.

This project taught me so much about launch modes and their practical use cases. I'm sure you'll have fun experimenting with it too! 🌟✨

video πŸ“ΊπŸ’»

LaunchModes.2.mp4
Watch the video

Watch Full Video

About

Explore Android Launch Modes πŸš€: Understand `Standard`, `SingleTop`, `SingleTask`, and `SingleInstance` behaviors with hands-on demos. Perfect for mastering activity and task management! 🌟 #AndroidDev #LaunchModes #Kotlin

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages