Java – installs applications that have no icons or activities

I talked to my friend and he told me that some applications can be installed on Android without any activities or icons in the menu Because I'm also studying robots, I'm surprised because I've never heard of it

The name of the application appears in the "manage applications" section and is easy to uninstall

So now I'm going to ask the programmer How (if so) is it possible to install such an application? (no activity or transmitter)

Solution

Simply remove all of the following intent filters from the list:

<intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

Remember, starting from Android 3.1, if the user does not manually open your app, your app will not receive any broadcast, or the UI (main activity) listed in any other place where the intended filter is available (for example, in the sharing menu) comes from the launcher at least once

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>