Android development-how to view the package name and the name of the entry activity

Source: Internet
Author: User

When you use the android automated testing tool monkeyrunner to start an application, you must enter the package name of the program to be tested and the Activity to be started. There are two methods to view the package name of the application and the name of the entry activity:
Method 1: Use aapt // aapt, which is a tool provided by the sdk, In the sdk \ builds-tools \ directory.
1. Take the esfile browser as an example, switch the command line to the aapt.exe directory and run: aapt dump badging E: \ apk \ es3.apk.
2. The following two lines in the running result are the application package name and the entry activity name.
Package: name = 'com. estrongs. android. Pop'
Launchable-activity: name = 'com. estrongs. android. pop. view. filecycleractive'
Note: You can find aapt.exe In the android sdkdirectory search. If not, you can download apktool.

Method 2: View AndroidManifest. xml
1. decompile app: apktool. bat d es3.apk E: \ apk \ es using apktool
2. Open AndroidManifest. xml
The package attribute value of the manifest node is the package name of the application:
Find the activity corresponding to android. intent. action. MAIN and android. intent. category. LAUNCHER. The android: name attribute of the activity is the name of the portal activity, as shown below:






Android. intent. action. MAIN determines the Activity that the application starts first.

Android. intent. category. LAUNCHER determines whether the application is displayed in the program list.



The IMF announced the latest global gdpranking in 2013, double that of Japan in China

Top 50 gdplists in various Chinese cities in 2013

Total GDP and per capita gdpranking of provinces and municipalities in China in 2013

In 2014, 95 Chinese enterprises ranked second among the top 500 in the world

The United States published the failed Country Index, China failed over India and Vietnam

The Chinese were fooled by "the Qing Dynasty's No. 1 GDP in the world!

2013 ranking and list of baiqiang counties in China

Top 25 IT technology companies with the highest salaryTop 100 Chinese Engineering Universities in 211 list of top jobs in the world top 20 jobs in the highest income ranking in the land area and population ranking of the world top engineering universities in China and list (16 in total)


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.