Method of not displaying apk in the icon list of the desktop after it is installed

Source: Internet
Author: User

Ghost is our system interface application. It will detect the package name of the application software installed in the system, resolve the icons and names of these applications and display them in the Application List using the gridview, if we do not want to display the application icons in luncher, we can simply modify androidmanifest. XML file.

For example, shield one of my test application icons:
<? XML version = "1.0" encoding = "UTF-8"?> <Manifest xmlns: Android = "http://schemas.android.com/apk/res/android" package = "com. android. test "Android: versioncode =" 1 "Android: versionname =" 1.0 "> <application Android: icon =" @ drawable/icon "Android: label = "@ string/app_name"> <activity Android: Name = ". phonetest "Android: Label =" @ string/app_name "> <intent-filter> <action Android: Name =" android. intent. action. main "/> <! -- Where we want to block <category Android: Name = "android. intent. category. launcher "/> --> </intent-filter> </activity> </Application> <uses-Permission Android: Name =" android. permission. read_contacts "> </uses-Permission> </manifest>
<! -- Where we want to block <category Android: Name = "android. intent. category. launcher "/> --> This statement indicates that we do not want our applications to be started in launcher, and of course we cannot see the icons of our applications.

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.