#102. "ADB Concepts-14" - How to 'Launch an App & Close an App' by using ADB Command
In this Article, we are going discuss about launch/Stopping an app from the command line using ADB (Android Debug Bridge).
Topic-1 : Launching an App:
Though it’s easiest to launch an app by simply selecting it from the Home Menu, but we can also launch an app over adb
Basic Syntax:
adb shell am start -S <package-name>/<activity-name>
Here’s a breakdown of the command:
Example:
Topic -2 : Stopping/Closing an App:
Though it’s easiest to close an app by simply hitting the [X] button on the Home Menu, but we can also close an app over adb:
Basic Syntax:
adb shell am force-stop <package-name>
Recommended by LinkedIn
Example:
What Happens When You Run This:
Get a step-by-step walkthrough in the video below!
🚀 Enhance Your Automation Skills with My Content!
📺 YouTube – AppiumGuide Explore in-depth tutorials and hands-on guides on mobile automation testing. 🔗 Watch Now
✍️ Medium – Articles & Insights Stay updated with expert-written articles on Appium, Selenium, and test automation strategies. 🔗 Read Here
💻 GitHub – Open-Source Contributions Access automation frameworks, sample projects, and best practices in mobile testing. 🔗 Explore Code
👍 𝗟𝗶𝗸𝗲 if you found it helpful!🔁 𝗥𝗲𝗽𝗼𝘀𝘁 with your network!🔖 𝗦𝗮𝘃𝗲 for future use!📤 𝗦𝗲𝗻𝗱 to your connections!💬 𝗖𝗼𝗺𝗺𝗲𝗻𝘁 your thoughts below!