Android hides the app icon and android hides the app

Source: Internet
Author: User

Android hides the app icon and android hides the app

In the past, I had nothing to worry about. I browsed my blog and saw the article that opened the app with a browser address,
After trying as described in this article, I found that the app icon was not displayed on the desktop.
You only need to modify it in the following code.

<Intent-filter> <action android: name = "android. intent. action. MAIN "/> <category android: name =" android. intent. category. LAUNCHER "/> <data android: scheme =" myapp "android: host =" akm. app "android: pathPrefix ="/openwith "/> </intent-filter>

But why does the app not display the icon after this addition?

Because we declare the app entry Activity to start by receiving an implicit Intent, the icon will not be displayed.

To display the icon, you can add an intent-filter tag to the Activity to move the data element to the new tag. In this way, the icon and response Uri can be displayed.

By the way, in manifest. xml, if there are two

<Action android: name = "android. intent. action. MAIN"/>

Two desktop icons and two program portals appear in the application.

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.