To modify the package name of the Android appCodeCan be installed on a mobile phone ....
(In order to save the interference and inconvenience caused by. SVN, we strongly recommend that you use the pure source code [No SVN ])
In eclipse, we need to spend some time and effort ..
A: Modify the packagename field in manifest. xml and issue a series of errors.
)Application name Get method: Packagemanager.getapplicationlabel (ApplicationInfo)Access method using permissions: Packagemanager.getpackageinfo (packagename,packagemanager.get_permissions). requestedpermissionsGet the specific information method by ResolveInfo:Package name Get method: Resolve.activityInfo.packageNameIcon Get Get Method: Resolve.loadicon (Packagemanager)
Shareitem.setlabel (Resolve.loadlabel (Pmanager). toString ());
Set Package Name
Shareitem.setpackagename (Resolve.activityInfo.packageName);
}
Summarize:Get the specific information method by PackageInfo:Package name Get method: Packageinfo.packagenameIcon Get Get Method: Packagemanager.getapplicationicon (ApplicationInfo)Application
of the package name that is a category Category_launcherIntent resolveintent = new Intent (intent.action_main, NULL);Resolveintent.addcategory (Intent.category_launcher);Resolveintent.setpackage (Packageinfo.packagename);Traverse through the Queryintentactivities method of the Getpackagemanager ()list. Queryintentactivities (resolveintent, 0);ResolveInfo ResolveInfo = Resolveinfolist.iterator (). Next ();i
Activitymanager Mactivitymanager = (activitymanager) getsystemservice (context.activity_service); Final Intent mainintent = new Intent (intent.action_main, null); Mainintent.addcategory (intent.category_launcher); Final Packagemanager Packagemanager = Getpackagemanager (); ListAndroid Grab phone app package name and class
The theme of Android theme developers, if you want to replace the Third-party application icon, you must know the application of the package name. Actually want to know the application of the package name is very simple, directly in the browser to open Google Play or pea pod
To update an application, you need information such as the package name permission version.
$ XmlFile = "AndroidManifest. xml ";
$ Power = array ("android. permission. ACCESS_CHECKIN_PROPERTIES "," android. permission. ACCESS_COARSE_LOCATION "," android. permission. ACCESS_
Precautions for changing the app package name in manifest of eclipse android, androidmanifest
When I was just learning android, I immediately started my project. At that time, I was not very familiar with eclipse. Many functions are unknown. If the new user changes the
Compact mode (each field in the package name fits together, for example), right-click the package name, refactor-Rename, only the outermost field of the package name can be modifiedIn d
Get the currently running app package name and activity:adb shell dumpsys window w |findstr \ |findstr name=method One in Appium's Android setting, select the app package that you downl
Transfer from http://blog.csdn.net/lfyx1357/article/details/74181331. Install Android App1) Launch Android emulator2) adb install (APK on the PC Path/) *.apk (upload the apk file to the Data/app directory with the emulator's own operating system)3) Browse open APK app in Android
When it comes to app automation, you're often asked how to know the app's package name and launch page name. The question is simple:1. The most direct way to ask development ah, they tell you the app's package name and start page.
Environment: already has the root permission of Android system, our apk is boot startTest: Copy the 2 identical versions below the system System/app directoryThe ADB root #获取root权限, provided that the root permission has been opened, namely: Debug compiled Android system adb remount # will write the system directory to ADB push c:/test_1_v1.apk/system/ The
Today in the technical summary, the way to share knowledge, personal advocating sharing.Get the package name of the foreground process in the following ways:1.android API 10-20Obtained by Getrunningtasks in Activitymanager.2.android API 21-22 ( part of the Google update package
does not use root cell phone, originally this Dumpsys usagestats is used to record which activity times and time of the program opened the information, here can be used to directly see your program to open what activity. You can try to execute the following command under cmd: adb shell "AM start-n com.tencent.mm/com.tencent.mm.ui.launcherui" phone qqadb shell "am start-n Com.tencent.mobileqq/com.tencent.mobileqq.activity.splashactivity "Micro bo adb shell" am start-n com.sina.weibo/ Com.sina.we
Http://www.51testing.com/html/01/610901-864955.html Workaround:A. In the case of source code, find Androidmanifest.xml, find the Android.intent.category.LAUNCHER keyword and you'll find the activity you need.The package name is seen here; Package= "Com.chnMicro.MFExchange"Typically in the next line of XML definitions, searching for "
Android obtains the app package name based on the apk and starts the Activity. androidapk
First, you must have the aapt tool. After downloading the android sdk, it will always come with it, under your sdk/build-tools
Open cmd and go to your sdk/build-tools. If there is no
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.