Which definition will prevent other apps from accessing your Activity class via an intent?

  • xml
    <activity android:name=”.ExampleActivity” />
  • xml
    <activity android:name=”.ExampleActivity”>
    <intent-filter>
    <action android:name=”android.intent.action.SEND” />
    </intent-filter>
    </activity>
  • xml
    <activity android:name=”.ExampleActivity”>
    <intent-filter>
    <action android:name=”android.intent.action.MAIN” />
    <category android:name=”android.intent.category.LAUNCHER” />
    </intent-filter>
    </activity>
  • xml
    <activity android:name=”.ExampleActivity”>
    <intent-filter>
    <action android:name=”android.intent.action.VIEW” />
    </intent-filter>
    </activity>
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment

Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Send this to a friend