android - App Launcher Icon Disappears from screen -


I was trying to set an intent filter for a simple app to handle URLs. I applied basic tags for "intent-filter" such as "action", "category"

Here I used 2 "intent-filter" tags.

  & lt; Activity Android: name = ". MyBrowserActivity" android: label = "@ string / app_name" & gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "android.intent.action.MAIN" /> & Lt; Category android: name = "android.intent.category.LAUNCHER" /> & Lt; / Intent-Filter & gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "android.intent.action.VIEW" /> & Lt; Data Android: scheme = "http" /> & Lt; Category android: name = "android.intent.category.BROWSABLE" /> & Lt; Category android: name = "android.intent.category.DEFAULT" /> & Lt; / Intent-Filter & gt; & Lt; / Activity & gt;  

But I did not show the launcher icon after the installation when I implemented the intent filter as shown in the 1 "intent-filter" tag.

  & lt; Activity Android: name = ". MyBrowserActivity" android: label = "@ string / app_name" & gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "android.intent.action.MAIN" /> & Lt; Category android: name = "android.intent.category.LAUNCHER" /> & Lt; Action Android: name = "android.intent.action.VIEW" /> & Lt; Data Android: scheme = "http" /> & Lt; Category android: name = "android.intent.category.BROWSABLE" /> & Lt; Category android: name = "android.intent.category.DEFAULT" /> & Lt; / Intent-Filter & gt; & Lt; / Activity & gt;  

I wanted to ask here that the main question "Why the App Launcher icon disappears in the second step only when there is only 1" Intent Filter ".

< P>

You need to split filter into two, so you have

   

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -