First, the source of the situationOpen the Androidmanifest.xml file directly and find the activity that contains the Android.intent.action.MAIN and Android.intent.category.LAUNCHER. If the third line of the package is Com.cola.ui, the seventh row of the main activity is Com.cola.ui.ColaBox (. Colabox is the activity shorthand method). Two, only the situation of the APK(1) AAPTUsing the command line AAPT dump Xmltree colabox.apk androidmanifest.xml
When the launcher is used, the user clicks the apk icon and needs to open this apk. There are two ways to start this apk:
First: Know the package name of the apk and its main Activity
// Help private ComponentName help_set; private final static String help_set_pack = "cn. abc. help "; private final static String help_set_name =" cn. abc. help. mainActivity ";/*** start an
Modify the name of the Android Project (non-Eclipse rename) and androideclipse
Problem background
In Eclipse, when importing a new Android source code project, if the Eclipse workspace already has the same name project, it cannot be imported.
There are many ways to modify t
When you modify the name of project in Android Studio, you are prompted to "can ' t rename root module."This is because Android Studio can only modify all files within the root directory, to modify the project root name, only to turn off
Android starts an application that only knows the package name. android package name
We know that to start an application, we need to know the name of the application to start the Activ
Monkeyrunner how it gets APP of the Package Name and the Activity NameRecent attempts to use Monkeyrunner for Android automated testing have started with the use of click-to-screen coordinates to run applications, but clicking on screen coordinates is cumbersome and less versatile. Through degrees Niang I know can use
1. Parse the package name data file (TXT file) and generate the package an array group:Package Jsouphtml;import Java.io.bufferedreader;import Java.io.file;import java.io.filereader;import Java.io.ioexception;public class Getpackagename {public static string[] Getpackagename (string filename) {string Packagename[]=null; BufferedReader Istream=null; String line = n
We often need to know the package name and Activiy name of the app when we are doing mobile phone automation testing, many colleagues just learn from where to find, in fact, there are many ways to get these valuesThe following is for the non-source of the situation, more suitable for novice colleaguesMethod one with th
Android Practice Note (3) --- Fragment parsing with app package or v4 package, android --- fragment
Android Practice Notes (3) --- Analysis of Fragment app
imported into the R class from the namespace of the package property, and any components defined in manifest must add the child package name (or write the full path).If you need to completely rename the package name, make sure th
Android studio's simplest package name modification method: androidstudio package name
Select the Project, right-click the Project, and deselect Compact Empty Moiddle Packages.
Enter new name Click Preview ente
previous step. Of course, sencha not only provides the "sencha app build native" command to package the apk installation package, but also provides other packaging methods, in the future, I think I will try it and share it with you if necessary.
See the output information of executing the sencha package apk command:
Java.lang.unsatisfiedlinkerror:dalvik.system.pathclassloader[dexpathlist[[zip file "/ data/app/Project Package name -2/base.apk ", zip file"/data/app/Project package name -2/split_lib_dependencies_apk.apk ", zip file"/data/
your app to be compatible with the lower version of the phone, then you can choose to use the V4 packageBut use V4 pack a lot to pay attention to place!2) Things to note when using the V4 package:① If you use the fragment under the V4 package, then the activity will inherit fragmentactivity Oh!Case: The fragment is loaded statically in the XML file today, and th
Once the environment has been configured successfully, we are ready for the first automated test. You do not need to install an Android emulator to use a real machine. Take a simple open app as an example.First, get the package name and activtity to launch an app, we need to
There are two ways to open apps that are currently known,One is open through OpenURL, this has a serious problem, that is, the whitelist must be added, the app is installed on the white list and cannot be opened.Another is the focus of today, open the app with the package name. First, the core code:Class LSAWSC = Objc_
When launching an app using the Android automated Test tool Monkeyrunner, you need to fill in the package name and activity of the program under test, there are two ways to view the app package
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.