Wednesday, 26 May 2021

Why is action android:name="android.intent.action.VIEW" added into AndroidManifest.xml when there is a android:name="android.intent.action.MAIN"

I know I can set <action android:name...> in AndroidManifest.xml.

I think that <action android:name...> can only assigned one time.

But from the following project, I find <action android:name="android.intent.action.VIEW"/> is added into AndroidManifest.xml when there is a <action android:name="android.intent.action.MAIN"/>, why?

https://github.com/sanogueralorenzo/Android-Kotlin-Clean-Architecture

https://github.com/igorwojda/android-showcase

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.sanogueralorenzo.namingishard">

    <application
        android:name=".App"
        ...
        android:theme="@style/AppTheme">
        <activity
            android:name=".SplashActivity"
            android:theme="@style/AppTheme.Splash">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <action android:name="android.intent.action.VIEW" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>


from Why is action android:name="android.intent.action.VIEW" added into AndroidManifest.xml when there is a android:name="android.intent.action.MAIN"

No comments:

Post a Comment