Appium Basics (iv) Find the app's appactivity and Apppackage

Source: Internet
Author: User

To view appactivity need to use the log:adb logcat>d:/log.log

If the Android SDK is already installed

In the catalog D:\Program Files (x86) \android\android-sdk\platform-tools

Next, we'll see Adb.exe

ADB is the Android debug bridge,android Debug Bridge, development will often use

1. In command line mode, go to this directory, execute adb logcat>d:/log.log

It is a good idea to set this directory to the system environment variable path so that you can execute the ADB command in which directory

Device is turned on and will appear as if no meeting prompt waits for the device

2. Launch the Android emulator to open the app

3, stop logcat, check the log, find the appactivity;apppackage we need

CTRL + C stop log capture

View Log file: When we save Execute command adb logcat>d:/log.log , the specified path

Search Android.intent.category.LAUNCHER This is the boot application flag

From the log we found I/activitymanager:com.android.calculator2/. Calculator

. Calculator is the appactivity we're looking for.

Com.android.calculator2 is apppackage.

The above two, when doing Python development configuration is needed.

Appium Basics (iv) Find the app's appactivity and Apppackage

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.